Skip to content
Snippets Groups Projects
lefilament_account_view.xml 1.11 KiB
Newer Older
  • Learn to ignore specific revisions
  • Benjamin's avatar
    Benjamin committed
    <?xml version="1.0" encoding="utf-8"?>
    <odoo>
    
        <!-- Account Invoice Form - Trigger validation  -->
        <record model="ir.ui.view" id="lf_invoice_form">
            <field name="inherit_id" ref="account.invoice_form"/>
            <field name="name">account.invoice.form</field>
            <field name="model">account.invoice</field>
            <field name="arch" type="xml">
                <xpath expr="//button[@name='action_invoice_open']" position="attributes">
                    <attribute name="confirm">Do you want to confirm this invoice ?</attribute>
                </xpath>
            </field>
        </record>
    
    Benjamin's avatar
    Benjamin committed
    
    
        <!-- Customer Account Invoice Tree -->
        <record id="lf_view_invoice_tree" model="ir.ui.view">
            <field name="inherit_id" ref="account.invoice_tree"/>
            <field name="name">account.invoice.tree</field>
            <field name="model">account.invoice</field>
            <field name="arch" type="xml">
                <xpath expr="//field[@name='amount_total_signed']" position="after">
                    <field name="amount_untaxed_signed" widget="monetary" sum="Total Untaxed" />
                </xpath>
            </field>
        </record>
    
    Benjamin's avatar
    Benjamin committed
    </odoo>