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.
29 lines
1.3 KiB
29 lines
1.3 KiB
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<odoo>
|
|
<!-- Product template view form inherited to add some extra fields-->
|
|
<record id="product_template_only_form_view" model="ir.ui.view">
|
|
<field name="name">
|
|
product.template.view.form.inherit.music.school.management
|
|
</field>
|
|
<field name="model">product.template</field>
|
|
<field name="inherit_id"
|
|
ref="product.product_template_only_form_view"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//field[@name='sale_ok']" position="before">
|
|
<field name="music_instrument"/>
|
|
<label for="music_instrument" string="is instrument"/>
|
|
</xpath>
|
|
<xpath expr="//field[@name='barcode']" position="after">
|
|
<field name="event_ticket"/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
<!--Filtered menu for product template-->
|
|
<record model="ir.actions.act_window" id="product_template_action_music_instrument">
|
|
<field name="name">Instruments</field>
|
|
<field name="domain">[('music_instrument','=', True)]</field>
|
|
<field name="context">{'default_music_instrument':True}</field>
|
|
<field name="res_model">product.template</field>
|
|
<field name="view_mode">kanban,tree,form</field>
|
|
</record>
|
|
</odoo>
|
|
|