Commits

Raimon Esteve (Zikzakmedia) committed 5e5168d

Add shops depends in shop field

Comments (0)

Files changed (2)

tests/test_sale_shop.py

         '''
         Test depends.
         '''
-        # test_depends() -> AssertionError: Missing depends ['shops'] in "res.user"."shop"
-        return True
+        test_depends()
 
 def doctest_dropdb(test):
     '''
 
     shops = fields.Many2Many('sale.shop-res.user', 'user', 'shop', 'Shops')
     shop = fields.Many2One('sale.shop', 'Shop',
-            domain=[('id', 'in', Eval('shops', []))]
+            domain=[('id', 'in', Eval('shops', []))],
+            depends=['shops'],
     )
     def __init__(self):
         super(User, self).__init__()