Eval company or -1 in context m2o fields #163427

This commit is contained in:
Raimon Esteve 2023-11-16 09:58:01 +01:00
parent 1b195a1e29
commit e9bf27b6e8
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ class StockMove(metaclass=PoolMeta):
bulk_product = fields.Many2One('product.product', 'Bulk Product',
states=STATES, context={
'company': Eval('company'),
'company': Eval('company', -1),
},
depends=['company'])