Hello, i'm new to odoo and i'm currently working on the appointment module, i created few models such as appointment type, appointment slots etc. i want to see the all available appointment date and time in-short available slots in the user menu in the back-end same as in the appointment module in the run-bot. user can see the available time slots of the doctor in the user menu (back-end) and can book appointment from that available slot, how can i achieve this.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project
- MRP
This question has been flagged
1
Reply
1455
Views
Hi,
You need to customize your current model
- Extend the Appointment Model: You've already created models like "Appointment Type" and "Appointment Slots." Now, you'll need to extend the main "Appointment" model to include the necessary fields and relationships. You'll want to have fields like the doctor's availability, patient information, etc.
- Generate Available Slots: You'll need to implement a mechanism that generates available appointment slots based on the doctor's availability and any other relevant criteria. This could involve checking the doctor's schedule, and existing appointments, and defining rules for generating slots.
- Menu Entry: Create a new
menu entry in the Odoo user interface to access the available
appointment slots. You can do this using Odoo's XML views and actions.
View Definition: Create a custom view that displays the available appointment slots. This view should show the slots in a user-friendly format, indicating which slots are available for booking. - Enable Booking Functionality: You'll need to enable the booking functionality for users. This involves implementing a mechanism to allow users to select an available slot and book an appointment. This could be done through a form or wizard.
- Handle Booking Confirmation: After a
user books an appointment slot, you'll need to handle the booking
confirmation, update the slot's status, and store relevant information
like patient details.
For more references to do this process, you can refer to this app: https://apps.odoo.com/apps/modules/15.0/base_hospital_management/
https://apps.odoo.com/apps/modules/15.0/hospital_appointments/
Hope it helps
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up
.