You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

43 lines
1.5 KiB

<?xml version="1.0"?>
<odoo>
<record id="action_gym_equipments" model="ir.actions.act_window">
<field name="name">Equipments</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">product.template</field>
<field name="view_mode">kanban,tree,form</field>
<field name="domain">[('gym_product','=','True')]</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Create your first Equipment!
</p>
</field>
</record>
<record model="ir.ui.view" id="view_equipment_form_inherit">
<field name="name">product.template.inherited</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_form_view"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='detailed_type']" position="after">
<field name="gym_product"/>
</xpath>
</field>
</record>
<menuitem id="gym_management_root"
name="Gym Management"
sequence="10"/>
<menuitem id="gym_configuration_root"
name="Configuration"
parent="gym_management_root"
sequence="40"/>
<menuitem id="gym_equipments_menu"
name="Equipments"
parent="gym_configuration_root"
action="action_gym_equipments"
sequence="10"/>
</odoo>