Add domain on company according rules for issue965
This commit is contained in:
1 parent
bbd769f4c0
commit
574342f777
1 file changed
+2
-1
+2
-1
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user