From e6d801a43adc6e4a62260ca4aa701c78c9551755 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Mon, 17 Feb 2025 19:39:43 +0100 Subject: [PATCH] [FIX] product_usability: fix crash when searching on main supplier --- product_usability/models/product_template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product_usability/models/product_template.py b/product_usability/models/product_template.py index 11485b9..6b1ef4f 100644 --- a/product_usability/models/product_template.py +++ b/product_usability/models/product_template.py @@ -40,7 +40,7 @@ class ProductTemplate(models.Model): # searching on the first line of a o2m is not that easy # So we search all potential matching products # Then we filter on the seller_id - records = self.search([("seller_ids.partner_id", operator, value)]) + records = self.search([("seller_ids.name", operator, value)]) records = records.filtered_domain([("seller_id", operator, value)]) return [("id", "in", records.ids)]