Skip to main content

Allow a calendar to alternate between multiple weeks.

Project description

Beta License: AGPL-3 OCA/hr Translate me on Weblate Try me on Runboat

Allow a calendar to alternate between multiple weeks.

An implementation of this functionality exists in Odoo’s resource module since version 13. In Odoo’s implementation, you can only alternate between two weeks. Furthermore, the implementation is more than a little wonky.

The advantage of this module over the implementation in resource is that you can alternate between more than two weeks. The implementation is (hopefully) better.

The downside of adopting this module is that all modules which interact with the week-alternating functionality of resource must be adapted to be compatible with this module. At the time of writing (2024-07-29), the only Odoo module which does this is hr_holidays.

Table of contents

Known issues / Roadmap

This module is a template for building on top of. It _will_ need glue modules to work with various other modules. Most notably, hr_holidays will not work 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.

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • Coop IT Easy SC

Contributors

Maintainers

This module is maintained by the OCA.

Odoo Community Association

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

Current maintainer:

carmenbianca

This module is part of the OCA/hr project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file odoo_addon_resource_multi_week_calendar-16.0.1.0.0.15-py3-none-any.whl.

File metadata

File hashes

Hashes for odoo_addon_resource_multi_week_calendar-16.0.1.0.0.15-py3-none-any.whl
Algorithm Hash digest
SHA256 f78d61792b498c325c4523f7f07e2c3d32dc1e500991c6f5fa565a2cdc673331
MD5 77f3cdfee4bf2bf960e9b0d7f7952a6a
BLAKE2b-256 8cb95f92225d6ae540557cb01c910b6dc06e28c592be6be3be857c8ab827f030

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page