From 04f055e00ad73b5a54ac34d79e4dd2b4738c50d3 Mon Sep 17 00:00:00 2001 From: Raimon Esteve Date: Thu, 16 Nov 2023 09:50:52 +0100 Subject: [PATCH] Eval company or -1 in context m2o fields #163427 --- shop.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shop.py b/shop.py index 48a82d7..fa6e8ea 100644 --- a/shop.py +++ b/shop.py @@ -12,7 +12,7 @@ class SaleShop(metaclass=PoolMeta): __name__ = 'sale.shop' party = fields.Many2One('party.party', "Default Party", context={ - 'company': Eval('company'), + 'company': Eval('company', -1), }, depends=['company']) self_pick_up = fields.Boolean('Default Self Pick Up', help='The goods are picked up by the customer before the sale, so no '