Skip to content

Commit

Permalink
[16.0][FIX] compute suggested_promotions when no product in so line
Browse files Browse the repository at this point in the history
  • Loading branch information
Kev-Roche committed Jun 6, 2024
1 parent 5862a5f commit 5af747b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sale_loyalty_order_suggestion/models/sale_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5af747b

Please sign in to comment.