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.
 
 
 
 
 

33 lines
1.5 KiB

<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<!-- Inherit the product page and added the Is Medicine Boolean -->
<record id="product_template_only_form_view" model="ir.ui.view">
<field name="name">product.template.view.form.inherit.dental.clinical.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="//div[@name='options']" position="inside">
<span class="d-inline-block">
<field name="is_medicine"/>
<label for="is_medicine"/>
</span>
</xpath>
<xpath expr="//field[@name='detailed_type']" position="before">
<field name="generic_name"/>
<field name="dosage_strength"/>
</xpath>
</field>
</record>
<!-- Tree view -->
<record id="product_template_tree_view" model="ir.ui.view">
<field name="name">product.template.view.tree.inherit.dental.clinical.management</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_tree_view"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='name']" position="after">
<field name="generic_name"/>
<field name="dosage_strength"/>
</xpath>
</field>
</record>
</odoo>