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.
 
 
 
 
 

40 lines
1.6 KiB

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!--inherit product form view -->
<record id="product_template_only_form_view" model="ir.ui.view">
<field name="name">product.template.view.form.inherit.hide.cost.price
</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="//label[@for='standard_price']"
position="attributes">
<attribute name="groups">
hide_cost_price.hide_cost_price_group_user
</attribute>
</xpath>
<xpath expr="//field[@name='standard_price']"
position="attributes">
<attribute name="groups">
hide_cost_price.hide_cost_price_group_user
</attribute>
</xpath>
</field>
</record>
<!--inherit product tree view-->
<record id="product_template_tree_view" model="ir.ui.view">
<field name="name">product.template.view.tree.inherit.hide.cost.price
</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='standard_price']"
position="attributes">
<attribute name="groups">
hide_cost_price.hide_cost_price_group_user
</attribute>
</xpath>
</field>
</record>
</odoo>