Skip to content

Commit

Permalink
[IMP] resource_multi_week_calendar: Improve roadmap
Browse files Browse the repository at this point in the history
Signed-off-by: Carmen Bianca BAKKER <[email protected]>
  • Loading branch information
carmenbianca committed Sep 9, 2024
1 parent 472f5d2 commit 99246e9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions resource_multi_week_calendar/readme/ROADMAP.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,14 @@ without modification.

The existing base Odoo two-week calendar functionality is hidden rather than
disabled. This may or may not be desirable.

The module may need improvements for timezone handling; this is currently
untested. ``_split_into_weeks`` splits weeks on the timezone of the datetime
objects passed to it instead of on the timezone of the calendar. The calculation
of the current week number uses ``fields.Date.today()`` instead of the
environment's or calendar's timezone. Finally, child calendars may have a
different timezone compared to their parent, which is probably not a desired
feature.

This module assumes that a week always starts on a Monday. Upstream Odoo appears
to do the same, but this may not be desired by certain audiences.

0 comments on commit 99246e9

Please sign in to comment.