Debian Codegraph @

addons/l10n_hu_edi/views/report_templates.xml

raw
1 <?xml version="1.0" encoding="utf-8"?>
2 <odoo>
3
4 <template id="external_layout_standard" inherit_id="web.external_layout_standard" >
5 <xpath expr="//img/../.." position="attributes">
6 <attribute name="t-if">not custom_header</attribute>
7 </xpath>
8
9 <xpath expr="//img/../.." position="after">
10 <div t-attf-class="header o_company_#{company.id}_layout"
11 t-if="custom_header and company.account_fiscal_country_id.code == 'HU'">
12 <t t-call="#{custom_header}"/>
13 </div>
14 </xpath>
15
16 <!-- support for custom footer -->
17 <div class="o_footer_content d-flex border-top pt-2" position="attributes">
18 <attribute name="t-if">not custom_footer</attribute>
19 </div>
20
21 <div class="o_footer_content d-flex border-top pt-2" position="after">
22 <div class="o_footer_content border-top pt-2"
23 t-if="custom_footer and company.account_fiscal_country_id.code == 'HU'">
24 <t t-out="custom_footer"/>
25 </div>
26 </div>
27 </template>
28
29 <template id="external_layout_bold" inherit_id="web.external_layout_bold" >
30 <xpath expr="//img/../.." position="attributes">
31 <attribute name="t-if">not custom_header</attribute>
32 </xpath>
33
34 <xpath expr="//img/../.." position="after">
35 <div t-if="custom_header and company.account_fiscal_country_id.code == 'HU'">
36 <t t-call="#{custom_header}"/>
37 </div>
38 </xpath>
39
40 <!-- support for custom footer -->
41 <xpath expr="//div[hasclass('o_footer_content')]" position="attributes">
42 <attribute name="t-if">not custom_footer</attribute>
43 </xpath>
44 <xpath expr="//div[hasclass('o_footer_content')]" position="after">
45 <div class="o_footer_content border-top pt-2" t-attf-class="{{'d-flex' if is_html_empty(company.report_header) else 'row' }}"
46 t-if="custom_footer and company.account_fiscal_country_id.code == 'HU'">
47 <t t-out="custom_footer"/>
48 </div>
49 </xpath>
50 </template>
51
52 <template id="external_layout_boxed" inherit_id="web.external_layout_boxed" >
53 <xpath expr="//img/../.." position="attributes">
54 <attribute name="t-if">not custom_header</attribute>
55 </xpath>
56
57 <xpath expr="//img/../.." position="after">
58 <div t-if="custom_header and company.account_fiscal_country_id.code == 'HU'">
59 <t t-call="#{custom_header}"/>
60 </div>
61 </xpath>
62
63 <!-- support for custom footer -->
64 <xpath expr="//div[hasclass('o_footer_content')]" position="attributes">
65 <attribute name="t-if">not custom_footer</attribute>
66 </xpath>
67 <xpath expr="//div[hasclass('o_footer_content')]" position="after">
68 <div class="o_footer_content border-top pt-2" t-attf-class="{{'d-flex' if is_html_empty(company.report_header) else 'row' }}"
69 t-if="custom_footer and company.account_fiscal_country_id.code == 'HU'">
70 <t t-out="custom_footer"/>
71 </div>
72 </xpath>
73 </template>
74
75 <template id="external_layout_striped" inherit_id="web.external_layout_striped" >
76 <xpath expr="//img/../.." position="attributes">
77 <attribute name="t-if">not custom_header</attribute>
78 </xpath>
79
80 <xpath expr="//img/../.." position="after">
81 <div t-if="custom_header and company.account_fiscal_country_id.code == 'HU'">
82 <t t-call="#{custom_header}"/>
83 </div>
84 </xpath>
85
86 <!-- support for custom footer -->
87 <div class="o_footer_content border-top pt-2 text-center" position="attributes">
88 <attribute name="t-if">not custom_footer</attribute>
89 </div>
90 <div class="o_footer_content border-top pt-2 text-center" position="after">
91 <div class="o_footer_content border-top pt-2 text-center"
92 t-if="custom_footer and company.account_fiscal_country_id.code == 'HU'">
93 <t t-out="custom_footer"/>
94 </div>
95 </div>
96 </template>
97
98 <template id="external_layout_bubble" inherit_id="web.external_layout_bubble">
99 <xpath expr="//img/../.." position="attributes">
100 <attribute name="t-if">not custom_header</attribute>
101 </xpath>
102
103 <xpath expr="//img/../.." position="after">
104 <div t-if="custom_header and company.account_fiscal_country_id.code == 'HU'">
105 <t t-call="#{custom_header}"/>
106 </div>
107 </xpath>
108
109 <!-- support for custom footer -->
110 <div t-attf-class="o_footer_content {{report_type != 'pdf' and 'position-absolute end-0 start-0 bottom-0 mx-5'}} pt-4 text-center" position="attributes">
111 <attribute name="t-if">not custom_footer</attribute>
112 </div>
113 <div t-attf-class="o_footer_content {{report_type != 'pdf' and 'position-absolute end-0 start-0 bottom-0 mx-5'}} pt-4 text-center" position="after">
114 <div t-attf-class="o_footer_content {{report_type != 'pdf' and 'position-absolute end-0 start-0 bottom-0 mx-5'}} pt-4 text-center"
115 t-if="custom_footer and company.account_fiscal_country_id.code == 'HU'">
116 <t t-out="custom_footer"/>
117 </div>
118 </div>
119 </template>
120
121 <template id="external_layout_wave" inherit_id="web.external_layout_wave">
122 <!-- support for custom header -->
123 <xpath expr="//img/../.." position="attributes">
124 <attribute name="t-if">not custom_header</attribute>
125 </xpath>
126
127 <xpath expr="//img/../.." position="after">
128 <div t-if="custom_header and company.account_fiscal_country_id.code == 'HU'">
129 <t t-call="#{custom_header}"/>
130 </div>
131 </xpath>
132
133 <!-- support for custom footer -->
134 <xpath expr="//div[contains(@t-attf-class,'o_footer_content')]" position="attributes">
135 <attribute name="t-if">not custom_footer</attribute>
136 </xpath>
137 <xpath expr="//div[contains(@t-attf-class,'o_footer_content')]" position="after">
138 <div t-attf-class="o_footer_content {{report_type != 'pdf' and 'mx-5'}} pt-5 text-center"
139 t-if="custom_footer and company.account_fiscal_country_id.code == 'HU'">
140 <t t-out="custom_footer"/>
141 </div>
142 </xpath>
143 </template>
144
145 <template id="external_layout_folder" inherit_id="web.external_layout_folder">
146 <!-- support for custom header -->
147 <xpath expr="//img/../.." position="attributes">
148 <attribute name="t-if">not custom_header</attribute>
149 </xpath>
150
151 <xpath expr="//img/../.." position="after">
152 <div t-if="custom_header and company.account_fiscal_country_id.code == 'HU'">
153 <t t-call="#{custom_header}"/>
154 </div>
155 </xpath>
156
157 <!-- support for custom footer -->
158 <div class="o_footer_content d-flex border-top pt-2" position="attributes">
159 <attribute name="t-if">not custom_footer</attribute>
160 </div>
161 <div class="o_footer_content d-flex border-top pt-2" position="after">
162 <div class="o_footer_content border-top pt-2"
163 t-if="custom_footer and company.account_fiscal_country_id.code == 'HU'">
164 <t t-out="custom_footer"/>
165 </div>
166 </div>
167 </template>
168 </odoo>