18ba4c7578b7d1b59562e925933e3a0486a3c8b5
Observed Behaviour When opening a pivot view with the catalan language activated and grouping rows/cols by months, everything works fine. But if we try to import this pivot view in a spreadsheet, all months are converted to gener, which means 'January' in catalan Expected Behaviour When importing the pivot view in a spreadsheet, we should get the correct date grouping Reproducibility This issue can be reproduced with the following steps 1. Activate the catalan language and set it 2. Got to Sales App 3. Select the pivot view 4. Group the rows/cols by order date > months 5. Try to import the pivot view in a spreadsheet Fix Description The issue was coming from the fact babel (the package used to generate date as text in python) write the month as 'de gener', 'de febrer', 'de març', 'd'abril', while moment (the lib used to handle date in JS) is looking for months as 'gener', 'febrer', ... (ie without "de" or "d'" prefix), causing it not to recognize the date proposed by Babel. We then added a preparse method to the catalan language, automatically used by moment when present in the language definition. Related Issues/PR opw-2817041 closes odoo/odoo#99717 Forward-port-of: #90466 X-original-commit: e6addb809134b37e1c45ca7d80bc4532180e1845 Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com> Signed-off-by: Hendrickx Anthony (anhe) <anhe@odoo.com>
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%