Skip to content

Commit

Permalink
[FIX] delivery: warning message in the delivery wizard is not updated
Browse files Browse the repository at this point in the history
When a warning is generated when rating a delivery method, the warning
message remains when changing to a different delivery method that isn't
supposed to give a warning.
  • Loading branch information
caburj committed Sep 12, 2019
1 parent bdb1ce1 commit 26b692c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions addons/delivery/wizard/choose_delivery_carrier.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ def _compute_available_carrier(self):
def _get_shipment_rate(self):
vals = self.carrier_id.rate_shipment(self.order_id)
if vals.get('success'):
if vals.get('warning_message'):
self.delivery_message = vals['warning_message']
self.delivery_message = vals.get('warning_message', False)
self.delivery_price = vals['price']
self.display_price = vals['carrier_price']
return {}
Expand Down

0 comments on commit 26b692c

Please sign in to comment.