Home › Curriculum › Odoo Developer › Actions and menus
Views, actions, reports and OWL · 12 min · 17–20Actions and menus
Window actions, server actions, URL and client actions, report actions, menus and binding actions to models.
In this lesson
- Action types
- Menus
- Binding actions and returning actions from Python
Key points
- act_window: res_model, view_mode, domain, context, target, help
- server, act_url, client and report actions
- menuitem tree with groups and sequence
- binding_model_id adds actions to Action/Print menus; methods can return action dicts
Real-world example
Credit controllers wanted to open 'customers over limit' in one click. A window action on res.partner with a domain on a stored 'over_limit' boolean, search_default for their company and a menu under Accounting gave them a daily worklist without a custom screen.
Questions and answers
Which action type prints a PDF?
ir.actions.report.
What restricts who sees a menu?
The groups attribute on the menu.