Eval company or -1 in context m2o fields #163427
This commit is contained in:
parent
a62cdbe624
commit
f9cade636f
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue