From 5af747b19eb295e089af8677c8b59bb09f7e1374 Mon Sep 17 00:00:00 2001 From: Kev-Roche Date: Thu, 6 Jun 2024 17:02:36 +0200 Subject: [PATCH] [16.0][FIX] compute suggested_promotions when no product in so line --- sale_loyalty_order_suggestion/models/sale_order.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sale_loyalty_order_suggestion/models/sale_order.py b/sale_loyalty_order_suggestion/models/sale_order.py index bef4585e..8ce25328 100644 --- a/sale_loyalty_order_suggestion/models/sale_order.py +++ b/sale_loyalty_order_suggestion/models/sale_order.py @@ -119,6 +119,7 @@ class SaleOrderLine(models.Model): def _compute_suggested_promotion_ids(self): self.suggested_promotion_ids = False self.suggested_reward_ids = False + self.suggested_promotions = False for line in self.filtered("product_id"): line.suggested_promotion_ids = line.order_id.with_context( product_id=line.product_id.id