| __pycache__ | ||
| controllers | ||
| static/src/js | ||
| views | ||
| __init__.py | ||
| __manifest__.py | ||
| README.md | ||
Appointment Capacity Extension
This module extends the appointment capacity limit in Odoo to use the total capacity of all resources assigned to an appointment type instead of the hardcoded limit of 12 people.
Functionality
- Removes the hardcoded 12-person limit for appointment bookings
- Sets the maximum capacity based on the total capacity of all resources assigned to an appointment type
- Works with resource-based appointment types that have the "Manage Capacities" option enabled
Installation
- Copy the
appointment_capacity_extendfolder to your Odoo custom addons directory - Update the Odoo apps list
- Install the "Appointment Capacity Extension" module
Configuration
No additional configuration is required. The module automatically extends the capacity limit based on the total capacity of resources assigned to each appointment type.
Usage
- Create or edit an appointment type
- Assign resources with capacities to the appointment type
- Enable the "Manage Capacities" option
- The maximum capacity for bookings will automatically be set to the total capacity of all assigned resources
Technical Details
The module overrides the _prepare_appointment_type_page_values method in the appointment controller to modify the max_capacity value that is passed to the frontend template. It also includes a JavaScript extension to handle capacity selection in the frontend.
Limitations
- Only works with resource-based appointment types (not user-based)
- Requires the "Manage Capacities" option to be enabled on the appointment type