From da90885bfd579c076dcec7a2be2c6bbfbdd7cca1 Mon Sep 17 00:00:00 2001 From: "Paolo (pgi)" Date: Wed, 20 Oct 2021 20:00:41 +0000 Subject: [PATCH] [FIX] sale_quotation_builder: quotation_description sanitize_attributes=False quotation_description on the sale order is copied from the product template, where it already is sanitize_attributes=False, and it has to stay like that because otherwise widgets like "tab" or "accordion" cannot be rendered correctly. This is also linked to a bug in the ORM where the _related_attrs weren't copied correctly. Related ORM PR: https://github.com/odoo/odoo/pull/78687 Ticket link: https://www.odoo.com/web#id=2487749&model=project.task opw-2487749 closes odoo/odoo#78836 X-original-commit: ee90f6bcea35350efa9eae8db749199b39ff5644 Signed-off-by: Paolo Gatti --- addons/sale_quotation_builder/models/product_template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/sale_quotation_builder/models/product_template.py b/addons/sale_quotation_builder/models/product_template.py index 91a107491f2..818b08767f7 100644 --- a/addons/sale_quotation_builder/models/product_template.py +++ b/addons/sale_quotation_builder/models/product_template.py @@ -12,7 +12,7 @@ class ProductTemplate(models.Model): translate=html_translate, help="The quotation description (not used on eCommerce)") quotation_description = fields.Html('Quotation Description', compute='_compute_quotation_description', - help="This field uses the Quotation Only Description if it is defined, otherwise it will try to read the eCommerce Description.") + sanitize_attributes=False, help="This field uses the Quotation Only Description if it is defined, otherwise it will try to read the eCommerce Description.") def _compute_quotation_description(self): for record in self: