(self)
Recompute coupons/promotions after pricelist prices reset.
Recompute coupons/promotions after pricelist prices reset.
Recompute coupons / promotions after pricelist prices reset .
def update_prices(self):
        """Recompute coupons/promotions after pricelist prices reset."""
        super().update_prices()
        if any(line.is_reward_line for line in self.order_line):
            self.recompute_coupon_lines()
def update_prices ( self ) : super ( ) . update_prices ( ) if any ( line . is_reward_line for line in self . order_line ) : self . recompute_coupon_lines ( )