Daily updates from Odoo
Navigate
Branch
Friday, February 25, 2022
15 changes
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
Point of Sale related apps now display clear, business-friendly names in the apps and settings pages. This makes it easier for users to identify and manage these apps without seeing unclear technical labels.
Original PR description
Before this commit the apps didn't have a non-technical name which causes the apps to show without a functional name throughout the apps pages:  After this commit these apps have a name just like all the other apps.
Resolved issues and error corrections
The salary configurator now takes users directly to the incomplete field when they try to review and sign a contract. This avoids confusion caused by jumping to the top of the form and helps users complete contracts faster.
Original PR description
before this commit, when we click on review contract & sign button it scroll to top of the form. after this commit, when we click on review contract & sign button it scroll where field is empty. Id-2639157
Code cleanup and technical improvements
The enterprise codebase was adapted to a newer version of Odoo's front-end framework, improving how screens update when data changes. This mainly modernizes internal UI behavior across apps such as Documents Spreadsheet, Barcode, Timesheets, Dashboard, and Studio, helping keep the platform aligned with the main Odoo upgrade.
Original PR description
This PR updates the enterprise codebase to the update of owl done in https://github.com/odoo/odoo/pull/84314 Co-authored-by: Géry Debongnie [ged@odoo.com](mailto:ged@odoo.com)
Miscellaneous changes
**Before** Analytic account and Analytic tags fields remain editable after the assets is confirmed, giving the impression they can be changed. But nothing happens when they are modified **After** Fields are readonly in all states except draft and model Task-2761086 Forward-Port-Of: odoo/enterprise#24385
Original PR description
**Before** Analytic account and Analytic tags fields remain editable after the assets is confirmed, giving the impression they can be changed. But nothing happens when they are modified **After** Fields are readonly in all states except draft and model Task-2761086 Forward-Port-Of: odoo/enterprise#24385
While fixing `opw-2611000`, the way the mail alias is computed has been changed: an alias is always created for sales and purchases journals, leading to alias conflicts in these tests Forward-Port-Of: odoo/enterprise#24696 Forward-Port-Of: odoo/enterprise#24654
Original PR description
While fixing `opw-2611000`, the way the mail alias is computed has been changed: an alias is always created for sales and purchases journals, leading to alias conflicts in these tests Forward-Port-Of: odoo/enterprise#24696 Forward-Port-Of: odoo/enterprise#24654
Ensure BIC is provided on Debtor in pain.001 as the Swiss flavor doesn't accept /DbtrAgt/FinInstnId/Othr tag. Also, the creditor agent can be omitted where IBAN/QR-IBAN is sent in the Creditor Account. Currently, providing NOTPROVIDED in /Othr/Id is not compatible with some Swiss banks. opw-2763965 opw-2759340 opw-2754024 opw-2761231 Forward-Port-Of: odoo/enterprise#24755 Forward-Port-Of: odoo/enterprise#24709
Original PR description
Ensure BIC is provided on Debtor in pain.001 as the Swiss flavor doesn't accept /DbtrAgt/FinInstnId/Othr tag. Also, the creditor agent can be omitted where IBAN/QR-IBAN is sent in the Creditor Account. Currently, providing NOTPROVIDED in /Othr/Id is not compatible with some Swiss banks. opw-2763965 opw-2759340 opw-2754024 opw-2761231 Forward-Port-Of: odoo/enterprise#24755 Forward-Port-Of: odoo/enterprise#24709
In saas-15.2, the product_qty field is renamed to reserved_qty (odoo/odoo#80434) To prepare for this change, and since the product_qty (reserved_qty) might differ from the qty_done - we remove the use of this field entirely Forward-Port-Of: odoo/enterprise#24742
Original PR description
In saas-15.2, the product_qty field is renamed to reserved_qty (odoo/odoo#80434) To prepare for this change, and since the product_qty (reserved_qty) might differ from the qty_done - we remove the use of this field entirely Forward-Port-Of: odoo/enterprise#24742
Step to reproduce: - In the gantt view : Group by project and stage + save as default - Reload page - MouseOver a pill Current Behaviour: - Try to show connectors which have not been rendered - Traceback Behaviour after PR: - Check whether connectors have been rendered before showing them - No traceback - No connector shown in that specific usecase (behaviour explained in b9ca47ffa7fbefca0025bd102166e1dfbb5380bf) - Connector are still shown if they are rendered by degrouping
Original PR description
Step to reproduce: - In the gantt view : Group by project and stage + save as default - Reload page - MouseOver a pill Current Behaviour: - Try to show connectors which have not been rendered - Traceback Behaviour after PR: - Check whether connectors have been rendered before showing them - No traceback - No connector shown in that specific usecase (behaviour explained in b9ca47ffa7fbefca0025bd102166e1dfbb5380bf) - Connector are still shown if they are rendered by degrouping opw-2767986 Forward-Port-Of: odoo/enterprise#24666
This pull request is for the addition of the Balance Sheet and Profit & Loss reports. No reports where present for the Italy localization before. These have been done according to the model of the Italian Civil Code of December 2020. task-2468834 Forward-Port-Of: odoo/enterprise#22472
Original PR description
This pull request is for the addition of the Balance Sheet and Profit & Loss reports. No reports where present for the Italy localization before. These have been done according to the model of the Italian Civil Code of December 2020. task-2468834 Forward-Port-Of: odoo/enterprise#22472
A fix was applied to rectify issues with the cancellation of CFDI documents for finkok odoo/enterprise#24051 Unfortunately this fix worked in test mode but not on production mode due to the differences in the following WSDLS: https://demo-facturacion.finkok.com/servicios/soap/cancel.wsdl https://facturacion.finkok.com/servicios/soap/cancel.wsdl This fix uses the complete namespace instead of depending on the sequence of the namespaces (ns0 or ns1) opw-2761593 (and others) Forward-Port-
Original PR description
A fix was applied to rectify issues with the cancellation of CFDI documents for finkok odoo/enterprise#24051 Unfortunately this fix worked in test mode but not on production mode due to the differences in the following WSDLS: https://demo-facturacion.finkok.com/servicios/soap/cancel.wsdl https://facturacion.finkok.com/servicios/soap/cancel.wsdl This fix uses the complete namespace instead of depending on the sequence of the namespaces (ns0 or ns1) opw-2761593 (and others) Forward-Port-Of: odoo/enterprise#24715
Forward-Port-Of: odoo/enterprise#24733 Forward-Port-Of: odoo/enterprise#24029
Original PR description
Forward-Port-Of: odoo/enterprise#24733 Forward-Port-Of: odoo/enterprise#24029
After a sign request is completed and you visualize the document, it is possible to drag/drop the signature images. When doing that, pdf.js tries to open the dropped image, causing an error. This commit edits the css of the completed sign items to prevent drag and drop. task-2746307 Forward-Port-Of: odoo/enterprise#24680 Forward-Port-Of: odoo/enterprise#23766
Original PR description
After a sign request is completed and you visualize the document, it is possible to drag/drop the signature images. When doing that, pdf.js tries to open the dropped image, causing an error. This commit edits the css of the completed sign items to prevent drag and drop. task-2746307 Forward-Port-Of: odoo/enterprise#24680 Forward-Port-Of: odoo/enterprise#23766
Original signature: `def _reverse_moves(self, default_values_list=None, cancel=False):` Signature in l10n_mx_edi: `def _reverse_moves(self, default_values_list, cancel=False):` Forward-Port-Of: odoo/enterprise#24637
Original PR description
Original signature: `def _reverse_moves(self, default_values_list=None, cancel=False):` Signature in l10n_mx_edi: `def _reverse_moves(self, default_values_list, cancel=False):` Forward-Port-Of: odoo/enterprise#24637
This commit which is related to https://github.com/odoo/odoo/pull/84686 allows to consider the () and the [] as equivalent to avoid rewriting the view each time. For example if a view contains `field in ('a', 'b')` in a t-if and a user opens the t-if modifier (Visible if) and does not modify anything and saves before to leave the modal. Studio will still modify the view to put `field in ['a', 'b']` because for him these are two different conditions. This commit avoids this by comparing the
Original PR description
This commit which is related to https://github.com/odoo/odoo/pull/84686 allows to consider the () and the [] as equivalent to avoid rewriting the view each time.
For example if a view contains `field in ('a', 'b')` in a t-if and a user opens the t-if modifier (Visible if) and does not modify anything and saves before to leave the modal. Studio will still modify the view to put `field in ['a', 'b']` because for him these are two different conditions.
This commit avoids this by comparing the t-if without considering parentheses/brackets and spaces in those
for example
`blah in ('foo', 'bar')` === `blah in ['foo', 'bar']`
and
`blah in ('foo', 'bar')` === `blah in ('foo', 'bar')`
(In the second case it is the space that changes)
opw-2738343
community: https://github.com/odoo/odoo/pull/84686
Forward-Port-Of: odoo/enterprise#24468