Add company to context

This commit is contained in:
Jared Esparza 2022-05-04 11:45:37 +02:00
parent d8e847646e
commit dab71a4216
1 changed files with 4 additions and 1 deletions

View File

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