[FIX] sale_quotation_builder: wrong/missing depends on compute methods
closes odoo/odoo#82806 Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
This commit is contained in:
@@ -14,7 +14,7 @@ class SaleOrderOption(models.Model):
|
||||
store=True, readonly=False, precompute=True,
|
||||
sanitize_attributes=False, translate=html_translate)
|
||||
|
||||
@api.depends('product_id', 'uom_id')
|
||||
@api.depends('product_id')
|
||||
def _compute_website_description(self):
|
||||
for option in self:
|
||||
if not option.product_id:
|
||||
|
||||
@@ -34,6 +34,7 @@ class SaleOrderTemplateLine(models.Model):
|
||||
translate=html_translate,
|
||||
sanitize_form=False)
|
||||
|
||||
@api.depends('product_id')
|
||||
def _compute_website_description(self):
|
||||
for line in self:
|
||||
if not line.product_id:
|
||||
@@ -51,6 +52,7 @@ class SaleOrderTemplateOption(models.Model):
|
||||
translate=html_translate,
|
||||
sanitize_attributes=False)
|
||||
|
||||
@api.depends('product_id')
|
||||
def _compute_website_description(self):
|
||||
for option in self:
|
||||
if not option.product_id:
|
||||
|
||||
Reference in New Issue
Block a user