Saturday, February 19, 2022
2 changes · master
Miscellaneous changes
Before this commit, the numbering system used by luxon was the default one set by the browser (in most cases: 'latn'). This caused issues when translating luxon dates with moment dates, as moment supports some locales differently (e.g.: ar_001 uses the 'arab' numbering system while Intl uses 'latn'). To have proper consistency, this commit assigns (as much as possible) the same numbering systems as luxon for each supported locale. Warning: since the numbering system is now set accordi
Original PR description
Before this commit, the numbering system used by luxon was the default one set by the browser (in most cases: 'latn'). This caused issues when translating luxon dates with moment dates, as moment supports some locales differently (e.g.: ar_001 uses the 'arab' numbering system while Intl uses 'latn'). To have proper consistency, this commit assigns (as much as possible) the same numbering systems as luxon for each supported locale. Warning: since the numbering system is now set according to the user 'lang' parameter, it's now unsafe to use `DateTime.fromFormat(...)` with static date strings, as they might not be parsable with the current numbering system. Forward-Port-Of: odoo/odoo#84759 Forward-Port-Of: odoo/odoo#83944
Steps to Reproduce: 1- use Peru Localization 2- give a non-admin user all accounting access rights 3- use the non-admin user U to create an invoice I 4- Process I manually Bug: the non-admin user will not be able to process the invoice even if he has the proper access rights. Fix: All the accounting user can process manually the invoices very similar to: https://github.com/odoo/enterprise/pull/23757 OPW-2747635 Forward-Port-Of: odoo/enterprise#23813
Original PR description
Steps to Reproduce: 1- use Peru Localization 2- give a non-admin user all accounting access rights 3- use the non-admin user U to create an invoice I 4- Process I manually Bug: the non-admin user will not be able to process the invoice even if he has the proper access rights. Fix: All the accounting user can process manually the invoices very similar to: https://github.com/odoo/enterprise/pull/23757 OPW-2747635 Forward-Port-Of: odoo/enterprise#23813