addons-cm/purchase_subtotal_undiscounted/views/purchase_order_line.xml

15 lines
749 B
XML

<odoo>
<record id="view_order_form_inherit_undiscounted" model="ir.ui.view">
<field name="name">purchase.order.form.undiscounted</field>
<field name="model">purchase.order</field>
<field name="inherit_id" ref="purchase_discount.purchase_order_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='order_line']/tree/field[@name='price_subtotal']" position="before">
<field name="price_subtotal_undiscounted" optional="show" />
</xpath>
<xpath expr="//field[@name='order_line']//tree//field[@name='discount']" position="attributes">
<attribute name="readonly">1</attribute>
</xpath>
</field>
</record>
</odoo>