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.
69 lines
3.1 KiB
69 lines
3.1 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<!-- Hide product cost and price in product template form view-->
|
|
<record id="product_template_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_form_view"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//label[@for='list_price']" position="attributes">
|
|
<attribute name="groups">
|
|
hide_cost_price.hide_cost_price_group_view_product_sale_price
|
|
</attribute>
|
|
</xpath>
|
|
<xpath expr="//field[@name='list_price']"
|
|
position="attributes">
|
|
<attribute name="groups">
|
|
hide_cost_price.hide_cost_price_group_view_product_sale_price
|
|
</attribute>
|
|
</xpath>
|
|
<xpath expr="//label[@for='standard_price']" position="attributes">
|
|
<attribute name="groups">
|
|
hide_cost_price.hide_cost_price_group_view_product_cost
|
|
</attribute>
|
|
</xpath>
|
|
<xpath expr="//field[@name='standard_price']"
|
|
position="attributes">
|
|
<attribute name="groups">
|
|
hide_cost_price.hide_cost_price_group_view_product_cost
|
|
</attribute>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
<!-- Hide product cost and price in product template kanban view-->
|
|
<record id="product_template_kanban_view" model="ir.ui.view">
|
|
<field name="name">
|
|
product.template.view.kanban.inherit.hide.cost.price
|
|
</field>
|
|
<field name="model">product.template</field>
|
|
<field name="inherit_id" ref="product.product_template_kanban_view"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//div[@name='product_lst_price']"
|
|
position="attributes">
|
|
<attribute name="groups">
|
|
hide_cost_price.hide_cost_price_group_view_product_sale_price
|
|
</attribute>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
<!-- Hide product cost and price in product template 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">
|
|
<field name="list_price" position="attributes">
|
|
<attribute name="groups">
|
|
hide_cost_price.hide_cost_price_group_view_product_sale_price
|
|
</attribute>
|
|
</field>
|
|
<field name="standard_price" position="attributes">
|
|
<attribute name="groups">
|
|
hide_cost_price.hide_cost_price_group_view_product_cost
|
|
</attribute>
|
|
</field>
|
|
</field>
|
|
</record>
|
|
</odoo>
|
|
|