Fix usage of context company
Default value of company should be -1 to get the right cast and an impossible value. Replace False by None as other value in "in" clause. issue3394 review1119002
This commit is contained in:
+1
-1
@@ -52,7 +52,7 @@ class PriceList(ModelSQL, ModelView):
|
||||
company = fields.Many2One('company.company', 'Company', required=True,
|
||||
select=True, domain=[
|
||||
('id', If(Eval('context', {}).contains('company'), '=', '!='),
|
||||
Eval('context', {}).get('company', 0)),
|
||||
Eval('context', {}).get('company', -1)),
|
||||
])
|
||||
lines = fields.One2Many('product.price_list.line', 'price_list', 'Lines')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user