Getting input from website users
In Odoo, you can collect input from website users through forms, surveys, or interactive elements integrated into your website. Odoo provides functionalities to create forms easily and manage the data collected from these forms. Here’s how you can set up input collection.
- Submitted form data is typically stored in the database as records of a specific model associated with the form
- Access the collected data either through the website backend or by configuring views to display the form submissions
- Optionally, you can link the form submissions to specific models in Odoo, allowing you to manage and process the data within the Odoo backend
- Define models and fields to store the form data securely
Getting ready
For this recipe, we will be using the my_hostel
module. We will need a new model to store hostel booking inquiries submitted by users.
So, before starting this recipe, modify the previous code and create one...