bug fix for price update

This commit is contained in:
Marc Durepos 2024-12-10 09:12:26 -05:00
parent 56b755039d
commit 58e49f0db5

View file

@ -85,11 +85,11 @@ class PriceNoticeMailing(models.Model):
),
]
if self.product_template_ids:
so_domain = [
so_domain = [(
"order_line.product_tmpl_id",
"in",
self.product_template_ids.ids,
] + so_domain
)] + so_domain
sale_ids = self.env["sale.order"].search(so_domain)
# Retrieve purchased products and limit to the selected product