addons-cm/purchase_invoice_subtotal_taxes/views/purchase_order_view.xml

30 lines
1.3 KiB
XML

<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<!-- Make price_total visible as optional column in purchase order lines -->
<record id="purchase_order_form_subtotal_taxes" model="ir.ui.view">
<field name="name">purchase.order.form.subtotal.taxes</field>
<field name="model">purchase.order</field>
<field name="inherit_id" ref="purchase.purchase_order_form" />
<field name="arch" type="xml">
<!-- Make price_total (Subtotal with tax) visible and optional -->
<xpath
expr="//field[@name='order_line']//tree//field[@name='price_total']"
position="attributes"
>
<attribute name="invisible">0</attribute>
<attribute name="optional">hide</attribute>
<attribute name="string">Subtotal (Tax Incl.)</attribute>
</xpath>
<!-- Make price_subtotal (Subtotal without tax) optional -->
<xpath
expr="//field[@name='order_line']//tree//field[@name='price_subtotal']"
position="attributes"
>
<attribute name="optional">show</attribute>
<attribute name="string">Subtotal (No Tax)</attribute>
</xpath>
</field>
</record>
</odoo>