addons-cm/purchase_invoice_subtotal_taxes/views/account_move_view.xml

31 lines
1.3 KiB
XML

<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<!-- Make both price_subtotal and price_total always visible as optional columns -->
<record id="view_move_form_subtotal_taxes" model="ir.ui.view">
<field name="name">account.move.form.subtotal.taxes</field>
<field name="model">account.move</field>
<field name="inherit_id" ref="account.view_move_form" />
<field name="arch" type="xml">
<!-- Remove group restriction from price_subtotal -->
<xpath
expr="//field[@name='invoice_line_ids']//tree//field[@name='price_subtotal']"
position="attributes"
>
<attribute name="groups"></attribute>
<attribute name="optional">show</attribute>
<attribute name="string">Subtotal (No Tax)</attribute>
</xpath>
<!-- Remove group restriction from price_total -->
<xpath
expr="//field[@name='invoice_line_ids']//tree//field[@name='price_total']"
position="attributes"
>
<attribute name="groups"></attribute>
<attribute name="optional">show</attribute>
<attribute name="string">Subtotal (Tax Incl.)</attribute>
</xpath>
</field>
</record>
</odoo>