Actions

The third and final component that pulls together the framework is actions. Actions are what trigger the appropriate views to be displayed, or specific actions to take place on a model. For example, when you choose Quotations from the Sale menu, you are triggering an action that tells the Odoo framework to display the appropriate sale.order view. Without actions, the Odoo framework would not know which view to display. Another example of an action would be posting or confirming a sales order. When you click Confirm, the Odoo framework calls the appropriate function that then updates the sale.order model.

Get Working with Odoo 11 - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.