Debian Codegraph @

addons/l10n_cz/views/report_template.xml

raw
1 <?xml version="1.0" encoding="utf-8"?>
2 <odoo>
3 <template id="registry_vat_external_layout">
4 <li t-if="company.company_registry and company.account_fiscal_country_id.code == 'CZ'">
5 Company ID: <span t-field="company.company_registry"/>
6 </li>
7 <li t-if="company.vat and company.account_fiscal_country_id.code == 'CZ'">
8 <t t-set="default_vat_label">Tax ID</t>
9 <t t-out="company.country_id.vat_label or default_vat_label"/>:
10 <span t-out="company.vat"/>
11 </li>
12 </template>
13
14 <template id="l10n_cz_external_layout_standard" inherit_id="web.external_layout_standard">
15 <xpath expr="//ul[@name='company_address_list']" position="inside">
16 <t t-call="l10n_cz.registry_vat_external_layout"/>
17 </xpath>
18 </template>
19
20 <template id="l10n_cz_external_layout_bold" inherit_id="web.external_layout_bold">
21 <xpath expr="//ul[@name='company_address_list']" position="inside">
22 <t t-call="l10n_cz.registry_vat_external_layout"/>
23 </xpath>
24 </template>
25
26 <template id="l10n_cz_external_layout_boxed" inherit_id="web.external_layout_boxed">
27 <xpath expr="//ul[@name='company_address_list']" position="inside">
28 <t t-call="l10n_cz.registry_vat_external_layout"/>
29 </xpath>
30 </template>
31
32 <template id="l10n_cz_external_layout_striped" inherit_id="web.external_layout_striped">
33 <xpath expr="//ul[@name='company_address_list']" position="inside">
34 <t t-call="l10n_cz.registry_vat_external_layout"/>
35 </xpath>
36 </template>
37
38 <template id="l10n_cz_external_layout_bubble" inherit_id="web.external_layout_bubble">
39 <xpath expr="//ul[@name='company_address_list']" position="inside">
40 <t t-call="l10n_cz.registry_vat_external_layout"/>
41 </xpath>
42 </template>
43
44 <template id="l10n_cz_external_layout_wave" inherit_id="web.external_layout_wave">
45 <xpath expr="//ul[@name='company_address_list']" position="inside">
46 <t t-call="l10n_cz.registry_vat_external_layout"/>
47 </xpath>
48 </template>
49
50 <template id="l10n_cz_external_layout_folder" inherit_id="web.external_layout_folder">
51 <xpath expr="//div[hasclass('o_folder_company_info')]" position="after">
52 <div t-if="company.company_registry and company.account_fiscal_country_id.code == 'CZ'">
53 Company ID: <span t-field="company.company_registry"/>
54 </div>
55 <div t-if="company.vat and company.account_fiscal_country_id.code == 'CZ'">
56 <t t-set="default_vat_label">Tax ID</t>
57 <t t-out="company.country_id.vat_label or default_vat_label"/>:
58 <span t-out="company.vat"/>
59 </div>
60 </xpath>
61 </template>
62 </odoo>