Browse Source

Sep 4 [FIX] : Bug Fixed 'hide_cost_price'

pull/277/head
AjmalCybro 2 years ago
parent
commit
017e19aaac
  1. 3
      hide_cost_price/__manifest__.py
  2. 5
      hide_cost_price/doc/RELEASE_NOTES.md
  3. 18
      hide_cost_price/views/product_product_view.xml
  4. 2
      hide_cost_price/views/product_template_view.xml

3
hide_cost_price/__manifest__.py

@ -22,7 +22,7 @@
{
'name': 'Hide Cost Price',
'summary': """Hide cost price of product for specified users""",
'version': '16.0.1.0.0',
'version': '16.0.2.0.0',
'description': """Product cost price will be visible only for specified
group""",
'author': 'Cybrosys Techno Solutions',
@ -39,5 +39,4 @@
'images': ['static/description/banner.png'],
'installable': True,
'auto_install': False,
}

5
hide_cost_price/doc/RELEASE_NOTES.md

@ -1,7 +1,6 @@
## Module <hide_cost_price>
#### 18.05.2023
#### Version 16.0.1.0.0
#### 02.09.2023
#### Version 16.0.2.0.0
##### ADD
- Initial commit for Hide Cost Price

18
hide_cost_price/views/product_product_view.xml

@ -13,9 +13,9 @@
<attribute name="groups">hide_cost_price.groups_view_cost_price
</attribute>
</xpath>
<xpath expr="//field[@name='standard_price']"
<xpath expr="//div[@name='standard_price_uom']"
position="attributes">
<attribute name="groups">hide_cost_price.view_cost_price
<attribute name="groups">hide_cost_price.groups_view_cost_price
</attribute>
</xpath>
</field>
@ -35,4 +35,18 @@
</xpath>
</field>
</record>
<record id="product_variant_easy_edit_view" model="ir.ui.view">
<field name="name">
product.product.view.tree.inherited.hide.cost.price
</field>
<field name="model">product.product</field>
<field name="inherit_id" ref="product.product_variant_easy_edit_view"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='standard_price']"
position="attributes">
<attribute name="groups">hide_cost_price.groups_view_cost_price
</attribute>
</xpath>
</field>
</record>
</odoo>

2
hide_cost_price/views/product_template_view.xml

@ -14,7 +14,7 @@
<attribute name="groups">hide_cost_price.groups_view_cost_price
</attribute>
</xpath>
<xpath expr="//field[@name='standard_price']"
<xpath expr="//div[@name='standard_price_uom']"
position="attributes">
<attribute name="groups">hide_cost_price.groups_view_cost_price
</attribute>

Loading…
Cancel
Save