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 0e27912f37
commit ac2db15c64
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'])