Skip to content
Extraits de code Groupes Projets
Sélectionner une révision Git
  • 35a1eb267019aeb1e4f18c8092e533b8bb18771a
  • 14.0 par défaut protégée
  • 14.0-QG
3 résultats

report_invoice_document.xml

Blame
  • report_invoice_document.xml 1,64 Kio
    <?xml version="1.0" encoding="utf-8"?>
    <!-- Copyright 2021 Le Filament
         License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
    
    <odoo>
        <data>
    
            <template id="afac_report_invoice_document" inherit_id="account.report_invoice_document">
                <!-- Gestion de l'affichage de la TVA : tableau & total -->
                <xpath expr="//th[@name='th_taxes']" position="attributes">
                    <attribute name="t-if">o.company_id.is_tax</attribute>
                </xpath>
                <xpath expr="//t[@name='account_invoice_line_accountable']/td[5]" position="attributes">
                    <attribute name="t-if">o.company_id.is_tax</attribute>
                </xpath>
                <xpath expr="//tr[hasclass('o_subtotal')]" position="attributes">
                    <attribute name="t-if">o.company_id.is_tax</attribute>
                </xpath>
                <xpath expr="//t[@t-foreach='o.amount_by_group']/tr" position="attributes">
                    <attribute name="t-if">o.company_id.is_tax</attribute>
                </xpath>
                <!-- Suppression affichage communication -->
                <xpath expr="//p[@name='payment_communication']" position="attributes">
                    <attribute name="t-if">o.company_id.is_tax</attribute>
                </xpath>
                <!-- Affichage mention TVA -->
                <xpath expr="//div[@id='total']/div" position="inside">
                    <t t-if="not o.company_id.is_tax">
                        <p class="text-right" style="padding: 0; margin: 0;">
                            <i>TVA non applicable art 293B du CGI</i>
                        </p>
                    </t>
                </xpath>
            </template>
    
        </data>
    </odoo>