Eval company or -1 in context m2o fields #163427

This commit is contained in:
Raimon Esteve 2023-11-16 09:33:04 +01:00
parent 283c3ad1eb
commit 7908fe74e8
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ class ProductSpecialPrice(ModelSQL, CompanyValueMixin):
template = fields.Many2One(
'product.template', "Template", ondelete='CASCADE',
context={
'company': Eval('company'),
'company': Eval('company', -1),
}, depends=['company'])
special_price = fields.Numeric("Special Price", digits=price_digits)