Add domain on company of ir.sequence to respect rules

This commit is contained in:
Cédric Krier committed 2008-12-04 23:23:24 +01:00
1 parent eed22b7f93
commit 0b951b5dcf
1 file changed
+2 -1
+2 -1
View File
@@ -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__()