diff --git a/product_variant_specific_description/models/product_template.py b/product_variant_specific_description/models/product_template.py index 4a5f6ce78..b075c8d79 100644 --- a/product_variant_specific_description/models/product_template.py +++ b/product_variant_specific_description/models/product_template.py @@ -10,6 +10,7 @@ class ProductTemplate(models.Model): description = fields.Html( compute="_compute_description", + search="_search_description", inverse="_inverse_description", ) is_system_multi_lang = fields.Boolean( @@ -42,6 +43,9 @@ def _inverse_description(self): if len(template.product_variant_ids) == 1: template.product_variant_ids.description = template.description + def _search_description(self, operator, value): + return [("product_variant_ids.description", operator, value)] + def open_product_variant(self): self.ensure_one() return {