Arbore/arbore#134 add purchase_subtotal_undiscounted

This commit is contained in:
Luis 2025-05-12 10:28:04 +02:00
parent 08fca37c6d
commit ebb6b6efce
8 changed files with 130 additions and 0 deletions

View 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>