OdooWiki OCA HUB

Calendar slot duration

web_calendar_slot_duration folder_open OCA/web open_in_new
Extra Tools License: LGPL-3

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.

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

Lets you change how tall each time slot is in Odoo's calendar views and set a default length for new events, by adding a calendar slot duration setting to the view context.

This module changes how the backend calendar views behave when a special setting called calendar_slot_duration is present in the view context.

  • In the calendar grid, the height of each time slot follows that setting instead of the standard value, so you can show shorter or longer slots depending on how detailed you want the day to look.
  • When you create a new event by clicking on the calendar, if no end time is given and the event is not an all-day event, the end time is automatically calculated by adding the configured duration to the start time.

The setting is not a field on a form; it is read from the context of the action or menu that opens the calendar. The module ships a demo data change that adds calendar_slot_duration set to 10 minutes to the scheduled actions window action, which shows how the feature is configured.

It only affects the web calendar views and does not add new models, menus, or database fields. No business rules, emails, or scheduled jobs are added by the module itself; the only scheduled action touched is the demo data record used to demonstrate the context setting.

Depends on

web

Required by other modules

Text generated by AI (DeepSeek) from reading the Odoo 19.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 8 confirmed, 1 with no information of 9 versions.

terminal Installation and usage

OCA documentation · Odoo 19.0

This documentation is for developers.

If you want to configure your calendar view's snap duration, make sure that your window action includes a context similar to this (example is the default value):

{"calendar_slot_duration": "00:30:00"}

It can be added in actions defined on python or as ir.actions.act_window records.

To use this module, you need to install some other addon that uses it, as it doesn't provide any end-user functionality.

As demo data, this module modifies the "Scheduled Actions" calendar to have slots of 10 minutes as feature demonstration.

No verified information in OCA: Installation.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.