Skip to content

Commit

Permalink
[IMP] - add menu item for attribute group
Browse files Browse the repository at this point in the history
  • Loading branch information
sbejaoui committed Mar 3, 2023
1 parent 3d27eb9 commit d8078f7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion attribute_set/views/attribute_attribute_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@
<record id="attribute_attribute_sort_action" model="ir.actions.act_window">
<field name="name">Attributes</field>
<field name="res_model">attribute.attribute</field>
<field name="view_mode">tree</field>
<field name="view_mode">tree,form</field>
<field name="search_view_id" ref="view_attribute_attribute_search" />
<field name="context">
{"search_default_attribute_group_id": active_id, "active_attribute_sort":
Expand Down
14 changes: 14 additions & 0 deletions attribute_set/views/attribute_group_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,18 @@
</search>
</field>
</record>
<record id="attribute_group_action" model="ir.actions.act_window">
<field name="name">Attribute Groups</field>
<field name="res_model">attribute.group</field>
<field name="view_mode">tree,form</field>
<field name="search_view_id" ref="attribute_group_search_view" />
<field name="context">{}</field>
<field name="help" />
</record>
<menuitem
action="attribute_group_action"
id="menu_attribute_group_action"
parent="menu_attribute_in_admin"
sequence="50"
/>
</odoo>

0 comments on commit d8078f7

Please sign in to comment.