5318e947bd2cc7f6cfb10f55f0d35030fd02c233
This commit improves the way months are recognized in pivot functions. It also removes the use of `moment.js` which will be removed in the future (see task 3391739) Currently, months in a pivot function must follow a very specific format. It must be mm/yyyy `ODOO.PIVOT(1, "amount", "date:month", "01/2020")` Among other things: "1/2020" does not work, it must be prefixed by a leading zeros. Now, any date-like value would work: month: "1/2020" first of the month: "1/1/2020" any day in the month: "1/2/2020" using the DATE function: DATE(2020, 12, 1) using NOW() Future work: `PIVOT.HEADER` should return a the date as a number when the date is a month. But it's currenctly quite a mess. because we use the same method for a million things (`getGroupByDisplayLabel`). Task 3413243 closes odoo/odoo#129782 Related: odoo/enterprise#44684 Signed-off-by: Rémi Rahir (rar) <rar@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%