To create a new menu in the "My Accounts" portal and set up a list/form view in Odoo 18, follow these steps. For Example- The custom menu has now been added to the "Fleet" customer portal.
3. Steps
Enterprise
To create a new menu in the "My Accounts" portal and set up a
list/form view in Odoo 18, follow these steps. For Example- The
custom menu has now been added to the "Fleet" customer
portal.
8. Steps
Enterprise
To create and display the custom menu, a function needs to
be defined in the Python controller. The implementation can
be done using the Python code below:
10. Steps
Enterprise
To redirect to the fleet list view defined in the template, a
controller function should be created to display the list view.
This can be added to the same Python controller.
14. Explanation
Enterprise
To include search bar filters in the list view, they must be
defined in a dictionary format, with each filter corresponding
to a label and a domain. For instance:
16. Explanation
Enterprise
The image below shows the updated version of the list view
with filters applied. In this example, the filter displays only
registered vehicles, while selecting 'All' will show the complete
list without any filters.
20. Conclusion
Enterprise
In summary, enhancing the Odoo 18 Customer Portal with a
custom menu, list view, and filters improves user interaction.
Adding menu items, developing data controllers, and
incorporating search and filter options creates a more user-
friendly experience, making it easier for users to manage their
information and boosting engagement.
21. For More Info.
Check our company website for related blogs
and Odoo book.
Check our YouTube channel for
functional and technical videos in Odoo.
Enterprise
www.cybrosys.com