Skip to content

Commit

Permalink
[FIX]product_replenishment_cost: costing visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
jok-adhoc committed May 8, 2023
1 parent 22c145c commit 5dab982
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions product_replenishment_cost/views/product_template_views.xml
Expand Up @@ -35,6 +35,19 @@
</field>
</record>

<record id="view_product_only_view_sale_price_form" model="ir.ui.view">
<field name="name">View Only sale price template form - hide costing</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="product_template_form_view"/>
<field name="groups_id" eval="[(6, 0, [ref('price_security.group_restrict_prices')])]"/>
<field name="arch" type="xml">
<!-- we hide costing -->
<group name="costing" position="attributes">
<attribute name="invisible">1</attribute>
</group>
</field>
</record>

<record id="product_template_search_view" model="ir.ui.view">
<field name="name">product.template.filter</field>
<field name="model">product.template</field>
Expand Down

0 comments on commit 5dab982

Please sign in to comment.