diff --git a/addons/product/models/product_template.py b/addons/product/models/product_template.py index 4f6e61e8659..5fa0b0d747a 100644 --- a/addons/product/models/product_template.py +++ b/addons/product/models/product_template.py @@ -226,8 +226,7 @@ class ProductTemplate(models.Model): self._set_product_variant_field('standard_price') def _search_standard_price(self, operator, value): - products = self.env['product.product'].search([('standard_price', operator, value)], limit=None) - return [('id', 'in', products.mapped('product_tmpl_id').ids)] + return [('product_variant_ids.standard_price', operator, value)] @api.depends('product_variant_ids.volume') def _compute_volume(self):