Sunday, September 20, 2020
1 change · master
Miscellaneous changes
Issue - Activate DHL connector - Create client with France address WITH an invalid post code - Create a quotation with the client just created (France Address) - Add any product - Click on "Add shipping", select "DHL USA" and click on "Get rate" Traceback is raised. Cause Not all 'condition code' are checked in response, therefore '_rate_shipment_vals' function returns nothing including the shipping price that is needed by 'rate_shipment' function who raised the error.
Original PR description
Issue - Activate DHL connector - Create client with France address WITH an invalid post code - Create a quotation with the client just created (France Address) - Add any product - Click on "Add shipping", select "DHL USA" and click on "Get rate" Traceback is raised. Cause Not all 'condition code' are checked in response, therefore '_rate_shipment_vals' function returns nothing including the shipping price that is needed by 'rate_shipment' function who raised the error. Solution Add management of these 3 following condition code: 420504 The origin location is invalid. Please check the data. 420505 The destination location is invalid. Please check the data. 420506 Postcode not found. Expected formats: <country specific post code format> DHL Documentation ref.: https://ecom.dhlexpress.pl/files/DHL%20EXPRESS%20-MyDHL%20API%20-%20Developer%20Guide%20-%20v1.4.pdf Forward-Port-Of: odoo/enterprise#13332 Forward-Port-Of: odoo/enterprise#13316