Eval company or -1 in context m2o fields #163427
This commit is contained in:
parent
283c3ad1eb
commit
7908fe74e8
|
@ -41,7 +41,7 @@ class ProductSpecialPrice(ModelSQL, CompanyValueMixin):
|
||||||
template = fields.Many2One(
|
template = fields.Many2One(
|
||||||
'product.template', "Template", ondelete='CASCADE',
|
'product.template', "Template", ondelete='CASCADE',
|
||||||
context={
|
context={
|
||||||
'company': Eval('company'),
|
'company': Eval('company', -1),
|
||||||
}, depends=['company'])
|
}, depends=['company'])
|
||||||
special_price = fields.Numeric("Special Price", digits=price_digits)
|
special_price = fields.Numeric("Special Price", digits=price_digits)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue