Daily updates from Odoo
Navigate
Branch
Friday, December 17, 2021
5 changes
Enhancements to existing features
FedEx shipping declarations now use the product's country of origin for customs information instead of always using the warehouse country. If no product origin is provided, the system keeps the previous warehouse-country fallback to avoid shipment failures from blank customs fields.
Original PR description
Before this commit, the value for commodity_country_of_manufacture was given by the warehouse country, but it makes more sense to use a special field for it, as explained in this commit: https://github.com/odoo/odoo/commit/7fc9234316c3143cee62b56f7f64bc2bacaa81bf In this file, the `commodity_country_of_manufacture` was placed right after the `commodity_description` field, because it is the same order as the arguments in the `srm.commodities()` function. 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. task-2701428
The change updates internal testing for approval and VoIP activity features to use a mock server. This helps make automated checks more consistent and reduces the risk of future changes breaking these areas unnoticed.
Code cleanup and technical improvements
The Sign app’s underlying JavaScript code was reorganized and modernized to make future improvements easier and safer to deliver. This is mainly an internal cleanup with minimal immediate change for users, though it may slightly improve maintainability and performance in signing flows.
Original PR description
This PR is one of the first in a series of PRs aiming to refactor the sign application until reaching OWL. It handles: - Migration to ES6 modules - Use new assets declaration and break js into multiple files instead of having one backend and one common file. - Overall cleaning of the code (merging common functions, removal of underscore.js, reduce jquery usage, implement arrow functions in order to reduce `const self = this`, linting files to keep consistency) The following PRs will address owl migration and further code cleaning. Since this PR changes the folder structure, many conflicts occur when a change in the JS code is done from another person. So it was decided to merge it ASAP to prevent this.
Miscellaneous changes
When having a shipper for a picking, if the user creates a backorder, each picking should have a different tracking number Related the fix of OPW-2678549 Forward-Port-Of: odoo/enterprise#22619
Original PR description
When having a shipper for a picking, if the user creates a backorder, each picking should have a different tracking number Related the fix of OPW-2678549 Forward-Port-Of: odoo/enterprise#22619
1. Open a browser tab with Company 1, the Aged Payable shows data of Company 1 2. Open a 2nd tab with Company 2, the Aged Payable shows data of Company 2 3. Come back to the 1st tab (still Company 1) and hit Export(XLSX) The downloaded document has data of Company 2. opw-2661021 Forward-Port-Of: odoo/enterprise#21590
Original PR description
1. Open a browser tab with Company 1, the Aged Payable shows data of Company 1 2. Open a 2nd tab with Company 2, the Aged Payable shows data of Company 2 3. Come back to the 1st tab (still Company 1) and hit Export(XLSX) The downloaded document has data of Company 2. opw-2661021 Forward-Port-Of: odoo/enterprise#21590