Arbore/arbore#134 add purchase_subtotal_undiscounted
This commit is contained in:
parent
08fca37c6d
commit
ebb6b6efce
8 changed files with 130 additions and 0 deletions
15
purchase_subtotal_undiscounted/views/purchase_order_line.xml
Normal file
15
purchase_subtotal_undiscounted/views/purchase_order_line.xml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue