Friday, February 25, 2022
1 change · master
Enhancements to existing features
EasyPost shipments now use the product's country of origin for customs information when available, falling back to the warehouse country to avoid shipping failures. Users can also access commercial invoices and related EasyPost documents directly from delivery log notes, with safer handling if document downloads take too long.
Original PR description
Before this commit, the value for custom_infos->origin_country was given by the warehouse country, but it makes more sense to use a special field for it, as explained in this commit: odoo/odoo@7fc9234 To avoid sending blank fields - which would cause the shipping to fail - if the country_of_origin field is not filled, the default behaviour is the same as before this commit: it then takes the warehouse country. Also, we can now retrieve the commercial invoice and any documents that would be sent by Easypost in the picking log notes:  task-2701428