mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
[FIX] delivery_gso: error cancelling due to shadow _
This commit is contained in:
@@ -273,7 +273,7 @@ class ProviderGSO(models.Model):
|
|||||||
}
|
}
|
||||||
for tracking in picking.carrier_tracking_ref.split(','):
|
for tracking in picking.carrier_tracking_ref.split(','):
|
||||||
request_body['TrackingNumber'] = tracking
|
request_body['TrackingNumber'] = tracking
|
||||||
_ = service.delete_shipment(request_body)
|
cancel_res = service.delete_shipment(request_body)
|
||||||
except HTTPError as e:
|
except HTTPError as e:
|
||||||
raise ValidationError(e)
|
raise ValidationError(e)
|
||||||
picking.message_post(body=_('Shipment N° %s has been cancelled') % (picking.carrier_tracking_ref, ))
|
picking.message_post(body=_('Shipment N° %s has been cancelled') % (picking.carrier_tracking_ref, ))
|
||||||
|
|||||||
Reference in New Issue
Block a user