Odoo Help

1
1 Answer
2
Avatar

subbarao

--subbarao--

1055
| 5 1 5
Chennai, India
--subbarao--


subbarao
3/7/19, 10:46 PM

Hello Try this


<record model="ir.ui.view" id="sale_margin_sale_order_line1">
<field name="name">sale.order.line.margin.view.form1</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale_margin.sale_margin_sale_order_line"/>
<field name="arch" type="xml">
    <xpath expr="//field[@name='order_line']/form//field[@name='purchase_price']" position="replace">
<field name="purchase_price"   groups="hide_cost_margin.group_show_cost_and_margin"/>
    </xpath>
</field>
</record>

<record model="ir.ui.view" id="sale_margin_sale_order_line_form1">
<field name="name">sale.order.line.tree.margin.view.form1</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale_margin.sale_margin_sale_order_line_form"/>
<field name="arch" type="xml">
   <xpath expr="//field[@name='order_line']/tree//field[@name='purchase_price']" position="replace">
<field name="purchase_price"   groups="hide_cost_margin.group_show_cost_and_margin"/>
    </xpath>
</field>
</record>
1 Comment
NAYoru
3/14/19, 12:43 PM

Thanks you!

Ask a Question
Writer
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register
Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now