Debian Codegraph @

addons/l10n_fr_account/views/report_invoice.xml

raw
1 <?xml version="1.0" encoding="utf-8"?>
2 <odoo>
3 <template id="report_invoice_document" inherit_id="account.report_invoice_document">
4 <xpath expr="(//address)[1]" position="after">
5 <div class="mb-0" t-if="o.l10n_fr_is_company_french and o.partner_id.commercial_partner_id.company_registry">
6 SIRET: <t t-esc="o.partner_id.commercial_partner_id.company_registry"/>
7 </div>
8 </xpath>
9 <xpath expr="(//address)[2]" position="after">
10 <div class="mb-0" t-if="o.l10n_fr_is_company_french and o.partner_id.commercial_partner_id.company_registry">
11 SIRET: <t t-esc="o.partner_id.commercial_partner_id.company_registry"/>
12 </div>
13 </xpath>
14 <xpath expr="(//address)[3]" position="after">
15 <div class="mb-0" t-if="o.l10n_fr_is_company_french and o.partner_id.commercial_partner_id.company_registry">
16 SIRET: <t t-esc="o.partner_id.commercial_partner_id.company_registry"/>
17 </div>
18 </xpath>
19
20 <xpath expr="//div[@id='informations']" position="inside">
21 <t t-if="o.l10n_fr_is_company_french and o.partner_id.commercial_partner_id != o.partner_id and o.move_type.startswith('out_')">
22 <t t-set="partner" t-value="o.partner_id.commercial_partner_id"/>
23 <div name="customer_address" class='col'>
24 <strong>Customer Address</strong>
25 <br/>
26 <address t-field="partner.self" class="m-0" t-options="{'widget': 'contact', 'fields': ['address'], 'no_marker': True}"/>
27 </div>
28 </t>
29 </xpath>
30
31 <xpath expr="//div[@id='informations']" position="inside">
32 <t t-if="o.l10n_fr_is_company_french and o.move_type.startswith('out_')">
33 <t t-set="tax_scopes" t-value="o.invoice_line_ids.mapped('tax_ids.tax_scope')"/>
34 <t t-set="has_service" t-value="'service' in tax_scopes"/>
35 <t t-set="has_consu" t-value="'consu' in tax_scopes"/>
36
37 <div t-if="has_service or has_consu" name="operation_type" class='col'>
38 <strong>Operation Type</strong>
39 <br/>
40 <span t-if="has_service and has_consu">
41 Mixed Operation
42 </span>
43 <span t-elif="has_service and not has_consu">
44 Service Delivery
45 </span>
46 <span t-else="">
47 Goods Delivery
48 </span>
49 </div>
50 </t>
51 </xpath>
52
53 <xpath expr="//div[@name='qr_code_placeholder']" position="before">
54 <div class="mb-3">
55 <p t-if="o.l10n_fr_is_company_french and o.move_type.startswith('out_') and 'on_invoice' in o.invoice_line_ids.mapped('tax_ids.tax_exigibility')">
56 Option to pay tax on debits
57 </p>
58 </div>
59 </xpath>
60 </template>
61 </odoo>