Skip to content

Latest commit

 

History

History

web_calendar_slot_duration

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Calendar slot duration

Production/Stable License: LGPL-3 OCA/web Translate me on Weblate Try me on Runboat

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

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.

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

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.

  • Tecnativa

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:

Yajo

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.