Skip to content

Commit

Permalink
[FIX]sale_coupon_delivery_auto_refresh: set context only for coupons
Browse files Browse the repository at this point in the history
  • Loading branch information
toita86 committed Sep 4, 2024
1 parent 8ed8a5c commit 9f2dd3f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions sale_coupon_delivery_auto_refresh/models/sale_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ def _auto_refresh_delivery(self):
Override to change context value to refresh coupons after creation
delivery line
"""
self = self.with_context(
skip_auto_refresh_coupons=False, auto_refresh_delivery=True
)
self = self.with_context(skip_auto_refresh_coupons=False)
return super(SaleOrder, self)._auto_refresh_delivery()

def _create_delivery_line(self, carrier, price_unit):
Expand Down

0 comments on commit 9f2dd3f

Please sign in to comment.