Levi Siuzdak (sile)
02ea85a12f
[FIX] web, hr_holidays: homogenize week numbering
...
Versions
--------
- 17.0
- 17.1
- master
Steps
-----
1. Go to Settings / Manage Languages;
2. select your current language;
3. set First Day of Week to something other than Sunday;
4. go to Time Off app.
Issue
-----
Weeks in year overview still start on a Sunday.
Cause
-----
Commit 52dae7a2f0 hardcoded `firstDay` to
Sunday for the `hr_holidays` module. This was a workaround to some
issues with `fullcalendar`'s week number calculations.
Solution
--------
Remove the hardcoded `firstDay`, and add a custom week numbering
function to be used on week, month, and year calendar views for
consistent numbering that allows for different first days of the week.
The function returns the ISO week number of the Monday nearest to the
configured first day of the week, i.e. the following Monday when first
day is set to Friday, Saturday or Sunday, the previous Monday if first
day is set to Tuesday, Wednesday or Thursday.
There were 3 main considerations for deciding a week numbering method:
1. no exisiting setting for users to decide on a method;
2. the ability to pick a first day of the week independent of locale;
3. the version of `luxon` used being unable to factor in locale.
Addendum
--------
This commit doesn't fix the issue with group-by week numbering in list
view. These stem from `babel`'s inconsistent locale defaults and
inability to take user-configured first day of the week into account.
opw-3668175
closes odoo/odoo#148623
Signed-off-by: Bruno Boi (boi) <boi@odoo.com >
2024-02-13 12:21:50 +00:00
..
2024-02-13 08:30:16 +00:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-06 18:49:02 +00:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-12 20:24:09 +00:00
2024-01-05 15:14:38 +00:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-12 20:24:06 +00:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-06 18:49:02 +00:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-06 18:49:02 +00:00
2024-02-12 12:31:10 +00:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-13 12:21:50 +00:00
2024-02-11 00:14:17 +01:00
2024-02-12 20:24:10 +00:00
2024-02-06 18:49:02 +00:00
2024-02-06 18:49:02 +00:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-08 15:07:58 +00:00
2024-01-29 23:16:20 +00:00
2024-02-11 00:14:17 +01:00
2024-02-06 18:49:02 +00:00
2024-02-11 00:14:17 +01:00
2024-02-12 20:24:07 +00:00
2024-02-11 00:14:17 +01:00
2024-02-08 09:23:00 +00:00
2024-01-30 21:08:05 +00:00
2024-01-03 16:59:08 +00:00
2024-01-18 13:46:49 +00:00
2024-01-20 02:42:58 +00:00
2024-01-05 09:12:49 +00:00
2024-01-18 20:16:02 +00:00
2024-01-26 09:13:04 +00:00
2024-01-16 09:55:24 +00:00
2024-01-16 09:55:24 +00:00
2024-01-29 13:44:38 +00:00
2024-01-19 01:36:07 +00:00
2024-01-05 04:29:57 +00:00
2024-01-03 16:59:08 +00:00
2024-01-03 16:59:08 +00:00
2024-01-15 09:30:57 +00:00
2024-01-10 08:50:53 +00:00
2024-01-16 09:55:24 +00:00
2024-02-05 12:20:56 +00:00
2024-01-16 09:55:24 +00:00
2024-01-03 16:59:08 +00:00
2024-02-03 02:06:43 +00:00
2024-01-09 23:04:43 +00:00
2024-01-24 19:58:40 +00:00
2024-02-07 07:54:59 +00:00
2024-02-07 07:54:59 +00:00
2024-02-07 07:54:59 +00:00
2023-12-15 10:09:30 +00:00
2024-02-07 18:34:22 +00:00
2024-01-16 18:00:21 +00:00
2024-01-31 18:59:08 +00:00
2024-01-10 19:39:34 +00:00
2024-01-03 16:59:18 +00:00
2024-01-16 09:55:24 +00:00
2024-01-16 09:55:24 +00:00
2024-01-26 01:17:57 +00:00
2024-01-16 09:55:24 +00:00
2024-02-09 11:57:32 +00:00
2024-01-30 12:20:00 +00:00
2024-01-13 05:56:51 +00:00
2024-01-17 06:25:12 +00:00
2024-02-13 08:30:16 +00:00
2024-02-06 20:16:25 +00:00
2024-01-29 02:16:51 +00:00
2024-02-03 19:38:00 +00:00
2024-01-26 06:33:41 +00:00
2024-01-16 09:55:24 +00:00
2024-02-02 10:50:51 +00:00
2024-01-03 16:59:08 +00:00
2024-01-03 16:59:08 +00:00
2024-01-03 16:59:08 +00:00
2024-01-16 09:55:24 +00:00
2024-01-16 09:55:24 +00:00
2024-01-16 09:55:24 +00:00
2024-01-16 09:55:24 +00:00
2024-01-16 09:55:24 +00:00
2024-02-08 15:07:55 +00:00
2024-01-16 09:55:24 +00:00
2024-01-03 16:59:08 +00:00
2024-01-15 09:30:53 +00:00
2024-01-10 05:04:28 +00:00
2024-01-26 09:13:03 +00:00
2024-01-22 09:08:54 +00:00
2023-12-18 18:46:39 +00:00
2024-02-07 09:18:53 +00:00
2024-01-16 09:55:24 +00:00
2024-01-19 07:59:48 +00:00
2023-12-12 21:49:50 +00:00
2023-12-13 00:32:24 +00:00
2024-01-26 09:13:08 +00:00
2024-01-16 09:55:24 +00:00
2024-01-16 09:55:24 +00:00
2024-01-26 21:07:50 +00:00
2024-01-16 09:55:24 +00:00
2024-01-20 05:31:55 +00:00
2024-01-16 09:55:24 +00:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-13 10:07:51 +00:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-12 10:44:46 +00:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-06 18:49:02 +00:00
2024-02-11 00:14:17 +01:00
2024-02-06 18:49:02 +00:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-12 10:44:46 +00:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-06 18:49:02 +00:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-12 22:26:20 +00:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-13 10:07:52 +00:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-12 10:44:46 +00:00
2024-02-11 00:14:17 +01:00
2024-02-06 18:49:02 +00:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-13 10:07:52 +00:00
2024-02-11 00:14:17 +01:00
2024-02-06 18:49:02 +00:00
2024-02-11 00:14:17 +01:00
2024-02-06 18:49:02 +00:00
2024-02-06 18:49:02 +00:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-06 18:49:02 +00:00
2024-02-06 18:49:02 +00:00
2024-02-11 00:14:17 +01:00
2024-02-06 18:49:02 +00:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-13 10:07:58 +00:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-13 10:07:57 +00:00
2024-02-11 00:14:17 +01:00
2024-02-06 18:49:02 +00:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-06 18:49:02 +00:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-13 08:30:13 +00:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-06 18:49:02 +00:00
2024-02-11 00:14:17 +01:00
2024-02-13 08:30:13 +00:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-13 10:08:02 +00:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-01-20 09:33:37 +00:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-06 18:49:02 +00:00
2024-02-06 18:49:02 +00:00
2024-02-13 08:30:17 +00:00
2024-02-06 18:49:02 +00:00
2024-02-11 00:14:17 +01:00
2024-02-06 18:49:02 +00:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-12 20:24:01 +00:00
2024-02-11 00:14:17 +01:00
2024-02-12 20:24:01 +00:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-03 06:59:49 +00:00
2023-12-19 06:58:42 +00:00
2024-01-19 05:20:52 +00:00
2023-12-18 23:32:05 +00:00
2024-01-31 17:13:57 +00:00
2024-01-24 17:49:03 +00:00
2024-01-24 23:07:09 +00:00
2024-01-15 06:46:08 +00:00
2023-12-18 23:32:05 +00:00
2023-12-18 23:32:05 +00:00
2024-01-31 06:59:10 +00:00
2023-12-18 23:32:05 +00:00
2023-12-18 23:32:05 +00:00
2024-01-22 19:00:58 +00:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-13 12:21:50 +00:00
2024-02-13 10:08:03 +00:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-12 22:26:18 +00:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-13 08:30:14 +00:00
2024-02-06 18:49:02 +00:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-06 18:49:02 +00:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-13 10:07:53 +00:00
2024-02-12 10:44:43 +00:00
2024-02-11 00:14:17 +01:00
2024-02-06 18:49:02 +00:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-12 10:44:43 +00:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-13 10:08:00 +00:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00