Add domain on company according rules for issue965

This commit is contained in:
Cédric Krier committed 2009-04-10 11:26:58 +02:00
1 parent bbd769f4c0
commit 574342f777
1 file changed
+2 -1
+2 -1
View File
@@ -155,7 +155,8 @@ User()
class Property(ModelSQL, ModelView):
_name = 'ir.property'
company = fields.Many2One('company.company', 'Company')
company = fields.Many2One('company.company', 'Company',
domain="[('id', '=', context.get('company', 0))]")
def _set_values(self, cursor, user_id, name, model, res_id, val, field_id,
context=None):