@ -1,11 +1,16 @@ |
|||||
<?xml version="1.0" encoding="utf-8"?> |
<?xml version="1.0" encoding="utf-8"?> |
||||
<odoo> |
<odoo> |
||||
<data> |
<!-- This record defines the "View Cost Price" group --> |
||||
<!-- This record defines the "View Cost Price" group --> |
<record id="hide_cost_price_group_view_product_cost" model="res.groups"> |
||||
<record id="hide_cost_price_group_user" model="res.groups"> |
<field name="name">View Product Cost</field> |
||||
<field name="name">View Cost Price</field> |
<field name="users" |
||||
<field name="users" |
eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]"/> |
||||
eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]"/> |
</record> |
||||
</record> |
<!-- Creating group for show the product price--> |
||||
</data> |
<record id="hide_cost_price_group_view_product_sale_price" |
||||
|
model="res.groups"> |
||||
|
<field name="name">View Product Sale Price</field> |
||||
|
<field name="users" |
||||
|
eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]"/> |
||||
|
</record> |
||||
</odoo> |
</odoo> |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 4.4 KiB |
After Width: | Height: | Size: 589 B |
After Width: | Height: | Size: 3.4 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 967 B |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 3.8 KiB |
After Width: | Height: | Size: 5.0 KiB |
Before Width: | Height: | Size: 59 KiB |
Before Width: | Height: | Size: 60 KiB |
After Width: | Height: | Size: 61 KiB |
Before Width: | Height: | Size: 56 KiB |
Before Width: | Height: | Size: 60 KiB |
Before Width: | Height: | Size: 60 KiB |
Before Width: | Height: | Size: 56 KiB |
Before Width: | Height: | Size: 56 KiB |
Before Width: | Height: | Size: 61 KiB |
After Width: | Height: | Size: 60 KiB |
Before Width: | Height: | Size: 59 KiB |
Before Width: | Height: | Size: 56 KiB |
Before Width: | Height: | Size: 59 KiB |
Before Width: | Height: | Size: 58 KiB |
After Width: | Height: | Size: 60 KiB |
After Width: | Height: | Size: 60 KiB |
After Width: | Height: | Size: 59 KiB |
After Width: | Height: | Size: 61 KiB |
Before Width: | Height: | Size: 72 KiB |
Before Width: | Height: | Size: 110 KiB After Width: | Height: | Size: 227 KiB |
Before Width: | Height: | Size: 130 KiB After Width: | Height: | Size: 141 KiB |
Before Width: | Height: | Size: 190 KiB After Width: | Height: | Size: 109 KiB |
Before Width: | Height: | Size: 125 KiB After Width: | Height: | Size: 73 KiB |
Before Width: | Height: | Size: 173 KiB After Width: | Height: | Size: 194 KiB |
After Width: | Height: | Size: 107 KiB |
After Width: | Height: | Size: 106 KiB |
After Width: | Height: | Size: 75 KiB |
Before Width: | Height: | Size: 225 KiB After Width: | Height: | Size: 264 KiB |
@ -1,39 +1,59 @@ |
|||||
<?xml version="1.0" encoding="utf-8"?> |
<?xml version="1.0" encoding="utf-8"?> |
||||
<odoo> |
<odoo> |
||||
<!--inherit product variant form view--> |
<!-- Hide product cost and sale price in product form view--> |
||||
<record id="product_normal_form_view" model="ir.ui.view"> |
<record id="product_normal_form_view" model="ir.ui.view"> |
||||
<field name="name">product.product.view.form.inherit.hide.cost.price |
<field name="name"> |
||||
|
product.product.view.form.inherit.hide.cost.price |
||||
</field> |
</field> |
||||
<field name="model">product.product</field> |
<field name="model">product.product</field> |
||||
<field name="inherit_id" ref="product.product_normal_form_view"/> |
<field name="inherit_id" ref="product.product_normal_form_view"/> |
||||
<field name="arch" type="xml"> |
<field name="arch" type="xml"> |
||||
<xpath expr="//label[@for='standard_price']" |
<field name="lst_price" position="attributes"> |
||||
position="attributes"> |
|
||||
<attribute name="groups"> |
<attribute name="groups"> |
||||
hide_cost_price.hide_cost_price_group_user |
hide_cost_price.hide_cost_price_group_view_product_sale_price |
||||
</attribute> |
</attribute> |
||||
</xpath> |
</field> |
||||
<xpath expr="//field[@name='standard_price']" |
<field name="standard_price" position="attributes"> |
||||
|
<attribute name="groups"> |
||||
|
hide_cost_price.hide_cost_price_group_view_product_cost |
||||
|
</attribute> |
||||
|
</field> |
||||
|
</field> |
||||
|
</record> |
||||
|
<!-- Hide product cost and sale price in product kanban view--> |
||||
|
<record id="product_kanban_view" model="ir.ui.view"> |
||||
|
<field name="name"> |
||||
|
product.product.view.kanban.inherit.hide.cost.price |
||||
|
</field> |
||||
|
<field name="model">product.product</field> |
||||
|
<field name="inherit_id" ref="product.product_kanban_view"/> |
||||
|
<field name="arch" type="xml"> |
||||
|
<xpath expr="//div[hasclass('oe_kanban_details')]/ul" |
||||
position="attributes"> |
position="attributes"> |
||||
<attribute name="groups"> |
<attribute name="groups"> |
||||
hide_cost_price.hide_cost_price_group_user |
hide_cost_price.hide_cost_price_group_view_product_sale_price |
||||
</attribute> |
</attribute> |
||||
</xpath> |
</xpath> |
||||
</field> |
</field> |
||||
</record> |
</record> |
||||
<!--inherit product variant tree view--> |
<!-- Hide product cost and price in product tree view--> |
||||
<record id="product_product_tree_view" model="ir.ui.view"> |
<record id="product_product_tree_view" model="ir.ui.view"> |
||||
<field name="name">product.product.view.tree.inherit.hide.cost.price |
<field name="name"> |
||||
|
product.product.view.tree.inherit.hide.cost.price |
||||
</field> |
</field> |
||||
<field name="model">product.product</field> |
<field name="model">product.product</field> |
||||
<field name="inherit_id" ref="product.product_product_tree_view"/> |
<field name="inherit_id" ref="product.product_product_tree_view"/> |
||||
<field name="arch" type="xml"> |
<field name="arch" type="xml"> |
||||
<xpath expr="//field[@name='standard_price']" |
<field name="lst_price" position="attributes"> |
||||
position="attributes"> |
|
||||
<attribute name="groups"> |
<attribute name="groups"> |
||||
hide_cost_price.hide_cost_price_group_user |
hide_cost_price.hide_cost_price_group_view_product_sale_price |
||||
</attribute> |
</attribute> |
||||
</xpath> |
</field> |
||||
|
<field name="standard_price" position="attributes"> |
||||
|
<attribute name="groups"> |
||||
|
hide_cost_price.hide_cost_price_group_view_product_cost |
||||
|
</attribute> |
||||
|
</field> |
||||
</field> |
</field> |
||||
</record> |
</record> |
||||
</odoo> |
</odoo> |
@ -1,40 +1,69 @@ |
|||||
<?xml version="1.0" encoding="utf-8"?> |
<?xml version="1.0" encoding="utf-8"?> |
||||
<odoo> |
<odoo> |
||||
<!--inherit product form view --> |
<!-- Hide product cost and price in product template form view--> |
||||
<record id="product_template_only_form_view" model="ir.ui.view"> |
<record id="product_template_form_view" model="ir.ui.view"> |
||||
<field name="name">product.template.view.form.inherit.hide.cost.price |
<field name="name">product.template.view.form.inherit.hide.cost.price</field> |
||||
</field> |
|
||||
<field name="model">product.template</field> |
<field name="model">product.template</field> |
||||
<field name="inherit_id" |
<field name="inherit_id" ref="product.product_template_form_view"/> |
||||
ref="product.product_template_only_form_view"/> |
|
||||
<field name="arch" type="xml"> |
<field name="arch" type="xml"> |
||||
<xpath expr="//label[@for='standard_price']" |
<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"> |
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"> |
<attribute name="groups"> |
||||
hide_cost_price.hide_cost_price_group_user |
hide_cost_price.hide_cost_price_group_view_product_cost |
||||
</attribute> |
</attribute> |
||||
</xpath> |
</xpath> |
||||
<xpath expr="//field[@name='standard_price']" |
<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"> |
position="attributes"> |
||||
<attribute name="groups"> |
<attribute name="groups"> |
||||
hide_cost_price.hide_cost_price_group_user |
hide_cost_price.hide_cost_price_group_view_product_sale_price |
||||
</attribute> |
</attribute> |
||||
</xpath> |
</xpath> |
||||
</field> |
</field> |
||||
</record> |
</record> |
||||
<!--inherit product tree view--> |
<!-- Hide product cost and price in product template tree view--> |
||||
<record id="product_template_tree_view" model="ir.ui.view"> |
<record id="product_template_tree_view" model="ir.ui.view"> |
||||
<field name="name">product.template.view.tree.inherit.hide.cost.price |
<field name="name"> |
||||
|
product.template.view.tree.inherit.hide.cost.price |
||||
</field> |
</field> |
||||
<field name="model">product.template</field> |
<field name="model">product.template</field> |
||||
<field name="inherit_id" ref="product.product_template_tree_view"/> |
<field name="inherit_id" ref="product.product_template_tree_view"/> |
||||
<field name="arch" type="xml"> |
<field name="arch" type="xml"> |
||||
<xpath expr="//field[@name='standard_price']" |
<field name="list_price" position="attributes"> |
||||
position="attributes"> |
|
||||
<attribute name="groups"> |
<attribute name="groups"> |
||||
hide_cost_price.hide_cost_price_group_user |
hide_cost_price.hide_cost_price_group_view_product_sale_price |
||||
</attribute> |
</attribute> |
||||
</xpath> |
</field> |
||||
|
<field name="standard_price" position="attributes"> |
||||
|
<attribute name="groups"> |
||||
|
hide_cost_price.hide_cost_price_group_view_product_cost |
||||
|
</attribute> |
||||
|
</field> |
||||
</field> |
</field> |
||||
</record> |
</record> |
||||
</odoo> |
</odoo> |