Files
odoo_source/addons
Lucas Lefèvre (lul) 5318e947bd [IMP] spreadsheet: interpret more months reprensentation
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>
2023-08-07 10:58:29 +02:00
..
2023-07-19 13:13:16 +02:00
2023-08-01 13:51:17 +02:00
2023-08-01 13:51:17 +02:00
2023-08-02 17:29:27 +02:00
2023-06-12 22:39:26 +02:00
2023-08-02 17:29:27 +02:00
2023-07-19 18:24:15 +02:00
2023-05-11 10:40:55 +02:00
2023-08-02 16:00:19 +02:00
2023-07-19 18:24:15 +02:00
2023-08-03 09:23:24 +02:00
2023-07-25 08:18:58 +02:00
2023-07-19 18:24:15 +02:00
2023-08-01 13:51:17 +02:00
2023-06-28 17:41:19 +02:00
2023-08-01 13:51:17 +02:00