Browse Source

[FIX] animal: Same xml-id for menu.item and module category

14.0
CarlosRoca13 2 years ago
committed by tafaRU
parent
commit
5c49b9348a
  1. 2
      animal/data/ir.module.category.csv
  2. 2
      animal/security/res_groups.xml
  3. 24
      animal/views/menu.xml

2
animal/data/ir.module.category.csv

@ -1,2 +1,2 @@
id,name,sequence
animal,Animal,30
module_category_animal,Animal,30

2
animal/security/res_groups.xml

@ -3,7 +3,7 @@
<!-- Animal groups -->
<record id="group_animal_manager" model="res.groups">
<field name="name">Manager</field>
<field name="category_id" ref="animal" />
<field name="category_id" ref="module_category_animal" />
<field
name="users"
eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]"

24
animal/views/menu.xml

@ -2,49 +2,49 @@
<!-- Main Menu -->
<menuitem
id="root"
id="menu_root"
name="Animals"
action="action_animal"
sequence="10"
web_icon="animal,static/description/icon.png"
/>
<menuitem
id="animal"
id="menu_animal"
name="Animals"
action="action_animal"
sequence="10"
parent="root"
parent="menu_root"
/>
<menuitem
id="config"
id="menu_config"
name="Configuration"
sequence="100"
parent="root"
parent="menu_root"
groups="group_animal_manager"
/>
<!-- Configuration -->
<menuitem id="settings" name="Settings" sequence="10" parent="config" />
<menuitem id="menu_settings" name="Settings" sequence="10" parent="menu_config" />
<menuitem
id="species"
id="menu_species"
name="Species"
action="action_animal_species"
sequence="20"
parent="config"
parent="menu_config"
/>
<menuitem
id="breed"
id="menu_breed"
name="Breeds"
action="action_animal_breed"
sequence="30"
parent="config"
parent="menu_config"
/>
<menuitem
id="color"
id="menu_color"
name="Colors"
action="action_animal_color"
sequence="40"
parent="config"
parent="menu_config"
/>
</odoo>
Loading…
Cancel
Save