# 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 1. Copy the `appointment_capacity_extend` folder to your Odoo custom addons directory 2. Update the Odoo apps list 3. 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 1. Create or edit an appointment type 2. Assign resources with capacities to the appointment type 3. Enable the "Manage Capacities" option 4. 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