ワンクリックで
odoo-ui-navigation-actions-menus
Configure Actions and Menus to expose models in the User Interface.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Configure Actions and Menus to expose models in the User Interface.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
A router skill that identifies and recommends the most appropriate Odoo skill for a given user request.
Create HTTP endpoints for Websites and APIs.
Comprehensive guide to Odoo fields, including basic, relational, computed, and robust technical features (indexing, company_dependent, properties).
Master the Odoo ORM for data manipulation, environment management, and CRUD operations.
Configure Access Control Lists (ACLs) using CSV files.
Write automated tests using TransactionCase and Form emulators to ensure code quality.
| name | Odoo UI Navigation (Actions & Menus) |
| description | Configure Actions and Menus to expose models in the User Interface. |
Create menu items and window actions to allow users to interact with the estate.property model.
ir.actions.act_window)Actions define how the system reacts to user interactions (e.g., clicking a menu).
File location: my_module/views/my_model_views.xml
Example Window Action:
<record id="action_estate_property" model="ir.actions.act_window">
<field name="name">Properties</field>
<field name="res_model">estate.property</field>
<field name="view_mode">list,form</field>
</record>
id: Unique XML Identifier.name: Action name (displayed in the breadcrumbs).res_model: The model this action is linked to.view_mode: Comma-separated list of allowed views (e.g., list,form).ir.ui.menu)Menus organize the navigation.
File location: my_module/views/my_model_menus.xml (or same as views).
Menu Structure:
Example:
<!-- Root Menu -->
<menuitem id="menu_real_estate_root" name="Real Estate">
<!-- Parent Menu -->
<menuitem id="menu_real_estate_first_level" name="Advertisements">
<!-- Action Menu -->
<menuitem id="menu_estate_property_action" action="action_estate_property"/>
</menuitem>
</menuitem>
XML files MUST be added to the __manifest__.py under data (or views).
Order matters! If a menu references an action, the action must be defined first (or in a file loaded earlier).
'data': [
'security/ir.model.access.csv',
'views/estate_property_views.xml',
'views/estate_menus.xml',
],
You can set default values in the Python model.
active = fields.Boolean(default=True)
state = fields.Selection(..., default='new')
date_availability = fields.Date(default=lambda self: fields.Date.today() + relativedelta(months=3))
In the Python model, you can control UI behavior:
readonly=True: Field cannot be edited.copy=False: Field value is not copied when duplicating the record.