Customizable calendar slot durations
Project description
This module extends the functionality of backend calendars to support custom slot durations and to allow you to provide more specific UX regarding event duration and snapping.
Table of contents
Configuration
This documentation is for developers.
If you want to configure your calendar view’s snap duration, make sure that you action includes a context similar to this (example is the default value):
{"calendar_slot_duration": "00:30:00"}
In addition, you can also configure the calendar view’s default mode by adding:
{"calendar_slot_duration": "00:30:00", "keep_default_view_slot_duration": True}
The keep_default_view_slot_duration key is optional and defaults to False. When set to True, the calendar view will not adapt its view to the slot size.
For example, if you want to set the default slot duration to 1 hour and 30 minutes, by default the calendar view will adapt its view to show slots of 1 hour and 30 minutes. Sometimes this is not desired, for example when you want to show every time slots by hour.
It can be added in actions defined on python or as ir.actions.act_window records.
Usage
To use this module, you need to install some other addon that uses it, as it doesn’t provide any end-user functionality.
Known issues / Roadmap
Drop module if/when https://github.com/odoo/odoo/pull/66739 is merged.
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
Contributors
-
Jairo Llopis
Stefan Ungureanu
Maintainers
This module is maintained by the OCA.
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:
This module is part of the OCA/web project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file odoo_addon_web_calendar_slot_duration-16.0.1.1.0-py3-none-any.whl
.
File metadata
- Download URL: odoo_addon_web_calendar_slot_duration-16.0.1.1.0-py3-none-any.whl
- Upload date:
- Size: 25.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aff0f853b63eaa6d49d86a0f4c17b40ab75cd04f14778b00dcf6a4e2666df032 |
|
MD5 | a599f34883e304432a1622b175d7255d |
|
BLAKE2b-256 | 424c003734b18eebb770f23bb048afb83c70bcb8845cc5373bf7390eb2930a77 |