Saturday, December 4, 2021
5 changes · master
Miscellaneous changes
Before this commit, the redirections were only possible localy (e.g. making a redirection to https://www.bloggiflette.com/potimarroniflette on https://www.odoo.com was redirecting to https://www.odoo.com/potimarroniflette) Forward-Port-Of: odoo/odoo#80851
Original PR description
Before this commit, the redirections were only possible localy (e.g. making a redirection to https://www.bloggiflette.com/potimarroniflette on https://www.odoo.com was redirecting to https://www.odoo.com/potimarroniflette) Forward-Port-Of: odoo/odoo#80851
TLDR: if we have a term in python and js code, then js translation may not work STEPS: * install point_of_sale * activate and switch to French translation * go to "Point of sale >> Reporting >> Orders" * Click "Time Ranges >> Range" BEFORE: "This Week" is not translated AFTER: All terms are translated WHY: * Translation imports merges translation if they have same src https://github.com/odoo/odoo/blob/1e39a2d3b8060963073a39d99ba3a14b07d03333/odoo/addons/base/models/ir_t
Original PR description
TLDR: if we have a term in python and js code, then js translation may not work STEPS: * install point_of_sale * activate and switch to French translation * go to "Point of sale >> Reporting >>…
TLDR: if we have a term in python and js code, then js translation may not work STEPS: * install point_of_sale * activate and switch to French translation * go to "Point of sale >> Reporting >> Orders" * Click "Time Ranges >> Range" BEFORE: "This Week" is not translated AFTER: All terms are translated WHY: * Translation imports merges translation if they have same src https://github.com/odoo/odoo/blob/1e39a2d3b8060963073a39d99ba3a14b07d03333/odoo/addons/base/models/ir_translation.py#L196 https://github.com/odoo/odoo/blob/1e39a2d3b8060963073a39d99ba3a14b07d03333/odoo/addons/base/models/ir_translation.py#L111 So, we get either js term for "This Week" or py term, but not both * web/webclient/translations loads only translation with comments==openerp-web https://github.com/odoo/odoo/blob/1e39a2d3b8060963073a39d99ba3a14b07d03333/odoo/addons/base/models/ir_translation.py#L900 So, if we don't have js term, then the translation is not loaded to UI * This only fix problem of no translation, but doesn't fix overriden translation (i.e. when same english term, e.g. Free, has different translation in frontend and backend). This part can be fixed by changing english term to something more unambiguous. --- opw-2357399 Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#61641
Before this commit, sometimes component do not properly render changes in the models. Although the modeling is correct, there is a problem in the component not re-rendering itself. The shouldUpdateBasedOnProps component hook did not consider update attempts that could be canceled. This commit adds this consideration, so that it ensures component is eventually rendered correctly Task-2410314 Task-2705078 Forward-Port-Of: odoo/odoo#80863 Forward-Port-Of: odoo/odoo#80855
Original PR description
Before this commit, sometimes component do not properly render changes in the models. Although the modeling is correct, there is a problem in the component not re-rendering itself. The shouldUpdateBasedOnProps component hook did not consider update attempts that could be canceled. This commit adds this consideration, so that it ensures component is eventually rendered correctly Task-2410314 Task-2705078 Forward-Port-Of: odoo/odoo#80863 Forward-Port-Of: odoo/odoo#80855
Improve the factur-x export in two ways: make the exported PDF PDF/A-3B compliant, and add the factur-x XMP metadata inside the file. Task id # 2668919 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#80682 Forward-Port-Of: odoo/odoo#78974
Original PR description
Improve the factur-x export in two ways: make the exported PDF PDF/A-3B compliant, and add the factur-x XMP metadata inside the file. Task id # 2668919 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#80682 Forward-Port-Of: odoo/odoo#78974
The super in _get_edi_attachments is missing the document parameter Forward-Port-Of: odoo/enterprise#22727
Original PR description
The super in _get_edi_attachments is missing the document parameter Forward-Port-Of: odoo/enterprise#22727