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:
Cédric Krier committed 2013-10-09 18:25:49 +02:00
1 parent edd20aa0c2
commit 567adf2423
1 file changed
+1 -1
+1 -1
View File
@@ -13,7 +13,7 @@ class Party:
sale_price_list = fields.Property(fields.Many2One('product.price_list',
'Sale Price List',
domain=[
('company', '=', Eval('context', {}).get('company')),
('company', '=', Eval('context', {}).get('company', -1)),
],
states={
'invisible': ~Eval('context', {}).get('company'),