38 lines
1.5 KiB
XML
38 lines
1.5 KiB
XML
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
<odoo>
|
||
|
|
||
|
<record model="ir.ui.view" id="sale_margin_sale_order">
|
||
|
<field name="name">sale.order.margin.view.form</field>
|
||
|
<field name="model">sale.order</field>
|
||
|
<field name="inherit_id" ref="sale.view_order_form"/>
|
||
|
<field name="arch" type="xml">
|
||
|
<xpath expr="//field[@name='amount_total']" position="after">
|
||
|
<field name="margin" groups="base.group_user"/>
|
||
|
</xpath>
|
||
|
</field>
|
||
|
</record>
|
||
|
|
||
|
<record model="ir.ui.view" id="sale_margin_sale_order_line">
|
||
|
<field name="name">sale.order.line.margin.view.form</field>
|
||
|
<field name="model">sale.order</field>
|
||
|
<field name="inherit_id" ref="sale.view_order_form"/>
|
||
|
<field name="arch" type="xml">
|
||
|
<xpath expr="//field[@name='order_line']/form//field[@name='price_unit']" position="after">
|
||
|
<field name="purchase_price" groups="base.group_user"/>
|
||
|
</xpath>
|
||
|
</field>
|
||
|
</record>
|
||
|
|
||
|
<record model="ir.ui.view" id="sale_margin_sale_order_line_form">
|
||
|
<field name="name">sale.order.line.tree.margin.view.form</field>
|
||
|
<field name="model">sale.order</field>
|
||
|
<field name="inherit_id" ref="sale.view_order_form"/>
|
||
|
<field name="arch" type="xml">
|
||
|
<xpath expr="//field[@name='order_line']/tree//field[@name='price_unit']" position="after">
|
||
|
<field name="purchase_price" groups="base.group_user"/>
|
||
|
</xpath>
|
||
|
</field>
|
||
|
</record>
|
||
|
|
||
|
</odoo>
|