From 567adf2423d295ebf98c8e45b1aa3a9b6273e1ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 9 Oct 2013 18:25:49 +0200 Subject: [PATCH] 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 --- party.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/party.py b/party.py index 3cb274ece2..ceea96f367 100644 --- a/party.py +++ b/party.py @@ -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'),