Add domain on company of ir.sequence to respect rules
This commit is contained in:
1 parent
eed22b7f93
commit
0b951b5dcf
1 file changed
+2
-1
+2
-1
@@ -151,7 +151,8 @@ Property()
|
||||
|
||||
class Sequence(OSV):
|
||||
_name = 'ir.sequence'
|
||||
company = fields.Many2One('company.company', 'Company')
|
||||
company = fields.Many2One('company.company', 'Company',
|
||||
domain="[('id', '=', context.get('company', False))]")
|
||||
|
||||
def __init__(self):
|
||||
super(Sequence, self).__init__()
|
||||
|
||||
Reference in new issue
Block a user