[MODULE] +v1.1.0 from https://www.odoo.com/apps/7.0/account_financial_report_webkit/
[burette/account_financial_report_webkit.git] / data / financial_webkit_header.xml
1 <?xml version="1.0" ?>
2 <openerp>
3 <data noupdate="1">
4 <record id="financial_landscape_header" model="ir.header_webkit">
5 <field name="footer_html"><![CDATA[
6 <html>
7 <head>
8 <meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
9 <script>
10 function subst() {
11 var vars={};
12 var x=document.location.search.substring(1).split('&');
13 for(var i in x) {var z=x[i].split('=',2);vars[z[0]] = unescape(z[1]);}
14 var x=['frompage','topage','page','webpage','section','subsection','subsubsection'];
15 for(var i in x) {
16 var y = document.getElementsByClassName(x[i]);
17 for(var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
18 }
19 }
20 </script>
21 </head>
22 <% import datetime %>
23 <body style="border:0; margin: 0;" onload="subst()">
24 <table style="border-top: 1px solid black; width: 1080px">
25 <tr style="border-collapse:collapse;">
26 <td style="text-align:left;font-size:10;width:350px;">${formatLang( str(datetime.datetime.today()), date_time=True)}</td>
27 <td style="text-align:center;font-size:10;width:350px;">${user.name}</td>
28 <td style="text-align:right;font-size:10;width:350px;">Page&nbsp;<span class="page"/></td>
29 <td style="text-align:left;font-size:10;width:30px">&nbsp;of&nbsp;<span class="topage"/></td>
30 </tr>
31 </table>
32 </body>
33 </html>]]></field>
34 <field name="orientation">Landscape</field>
35 <field name="format">A4</field>
36 <field name="html"><![CDATA[
37 <html>
38 <head>
39 <meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
40 <script>
41 function subst() {
42 var vars={};
43 var x=document.location.search.substring(1).split('&');
44 for(var i in x) {var z=x[i].split('=',2);vars[z[0]] = unescape(z[1]);}
45 var x=['frompage','topage','page','webpage','section','subsection','subsubsection'];
46 for(var i in x) {
47 var y = document.getElementsByClassName(x[i]);
48 for(var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
49 }
50 }
51 </script>
52 <style type="text/css">
53 ${css}
54 </style>
55 </head>
56 <body style="border:0; margin: 0;" onload="subst()">
57 <table class="header" style="border-bottom: 0px solid black; width: 100%">
58 <tr>
59 <td style="text-align:left; font-size:11px; font-weight: bold;"><span style="text-transform:uppercase; font-size:12px;">${report_name}</span> - ${company.partner_id.name | entity} - ${company.currency_id.name | entity}</td>
60 </tr>
61 </table> ${_debug or ''|n} </body>
62 </html>]]>
63 </field>
64 <field eval="0.0" name="margin_top"/>
65 <field name="css"><![CDATA[
66
67 body, table, td, span, div {
68 font-family: Helvetica, Arial;
69 }
70
71 .act_as_table {
72 display: table;
73 }
74 .act_as_row {
75 display: table-row;
76 }
77 .act_as_cell {
78 display: table-cell;
79 }
80 .act_as_thead {
81 display: table-header-group;
82 }
83 .act_as_tbody {
84 display: table-row-group;
85 }
86 .act_as_tfoot {
87 display: table-footer-group;
88 }
89 .act_as_caption {
90 display: table-caption;
91 }
92 act_as_colgroup {
93 display: table-column-group;
94 }
95
96 .list_table, .data_table {
97 width: 1080px;
98 table-layout: fixed
99 }
100
101 .bg, .act_as_row.labels {
102 background-color:#F0F0F0;
103 }
104
105 .list_table, .data_table, .list_table .act_as_row {
106 border-left:0px;
107 border-right:0px;
108 text-align:left;
109 font-size:9px;
110 padding-right:3px;
111 padding-left:3px;
112 padding-top:2px;
113 padding-bottom:2px;
114 border-collapse:collapse;
115 }
116
117 .list_table .act_as_row.labels, .list_table .act_as_row.initial_balance, .list_table .act_as_row.lines {
118 border-color:gray;
119 border-bottom:1px solid lightGrey;
120 }
121
122 .data_table .act_as_cell {
123 border: 1px solid lightGrey;
124 text-align: center;
125 }
126
127 .data_table .act_as_cell, .list_table .act_as_cell {
128 word-wrap: break-word;
129 }
130
131 .data_table .act_as_row.labels {
132 font-weight: bold;
133 }
134
135 .initial_balance .act_as_cell {
136 font-style:italic;
137 }
138
139 .account_title {
140 font-size:10px;
141 font-weight:bold;
142 page-break-after: avoid;
143 }
144
145 .act_as_cell.amount {
146 word-wrap:normal;
147 text-align:right;
148 }
149
150 .list_table .act_as_cell{
151 padding-left: 5px;
152 /* border-right:1px solid lightGrey; uncomment to active column lines */
153 }
154 .list_table .act_as_cell.first_column {
155 padding-left: 0px;
156 /* border-left:1px solid lightGrey; uncomment to active column lines */
157 }
158
159 .sep_left {
160 border-left: 1px solid lightGrey;
161 }
162
163 .overflow_ellipsis {
164 text-overflow: ellipsis;
165 overflow: hidden;
166 white-space: nowrap;
167 }
168
169 .open_invoice_previous_line {
170 font-style: italic;
171 }
172
173 .clearance_line {
174 font-style: italic;
175 }
176
177 ]]>
178 </field>
179 <field name="name">Financial Landscape Header</field>
180 </record>
181
182 <record id="financial_portrait_header" model="ir.header_webkit">
183 <field name="footer_html"><![CDATA[
184 <html>
185 <head>
186 <meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
187 <script>
188 function subst() {
189 var vars={};
190 var x=document.location.search.substring(1).split('&');
191 for(var i in x) {var z=x[i].split('=',2);vars[z[0]] = unescape(z[1]);}
192 var x=['frompage','topage','page','webpage','section','subsection','subsubsection'];
193 for(var i in x) {
194 var y = document.getElementsByClassName(x[i]);
195 for(var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
196 }
197 }
198 </script>
199 </head>
200 <% import datetime %>
201 <body style="border:0; margin: 0;" onload="subst()">
202 <table style="border-top: 1px solid black; width: 1080px">
203 <tr style="border-collapse:collapse;">
204 <td style="text-align:left;font-size:10;width:350px;">${formatLang( str(datetime.datetime.today()), date_time=True)}</td>
205 <td style="text-align:center;font-size:10;width:350px;">${user.name}</td>
206 <td style="text-align:right;font-size:10;width:350px;">Page&nbsp;<span class="page"/></td>
207 <td style="text-align:left;font-size:10;width:30px">&nbsp;of&nbsp;<span class="topage"/></td>
208 </tr>
209 </table>
210 </body>
211 </html>]]></field>
212 <field name="orientation">Portrait</field>
213 <field name="format">A4</field>
214 <field name="html"><![CDATA[
215 <html>
216 <head>
217 <meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
218 <script>
219 function subst() {
220 var vars={};
221 var x=document.location.search.substring(1).split('&');
222 for(var i in x) {var z=x[i].split('=',2);vars[z[0]] = unescape(z[1]);}
223 var x=['frompage','topage','page','webpage','section','subsection','subsubsection'];
224 for(var i in x) {
225 var y = document.getElementsByClassName(x[i]);
226 for(var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
227 }
228 }
229 </script>
230 <style type="text/css">
231 ${css}
232 </style>
233 </head>
234 <body style="border:0; margin: 0;" onload="subst()">
235 <table class="header" style="border-bottom: 0px solid black; width: 100%">
236 <tr>
237 <td style="text-align:left; font-size:11px; font-weight: bold;"><span style="text-transform:uppercase; font-size:12px;">${report_name}</span> - ${company.partner_id.name | entity} - ${company.currency_id.name | entity}</td>
238 </tr>
239 </table> ${_debug or ''|n} </body>
240 </html>]]>
241 </field>
242 <field eval="17.0" name="margin_top"/>
243 <field eval="15.0" name="margin_bottom"/>
244 <field name="css"><![CDATA[
245
246 body, table, td, span, div {
247 font-family: Helvetica, Arial;
248 }
249
250 .act_as_table {
251 display: table;
252 }
253 .act_as_row {
254 display: table-row;
255 }
256 .act_as_cell {
257 display: table-cell;
258 }
259 .act_as_thead {
260 display: table-header-group;
261 }
262 .act_as_tbody {
263 display: table-row-group;
264 }
265 .act_as_tfoot {
266 display: table-footer-group;
267 }
268 .act_as_caption {
269 display: table-caption;
270 }
271 act_as_colgroup {
272 display: table-column-group;
273 }
274
275 .list_table, .data_table {
276 width: 690px;
277 table-layout: fixed
278 }
279
280 .bg, .act_as_row.labels {
281 background-color:#F0F0F0;
282 }
283
284 .list_table, .data_table, .list_table .act_as_row {
285 border-left:0px;
286 border-right:0px;
287 text-align:left;
288 font-size:9px;
289 padding-right:3px;
290 padding-left:3px;
291 padding-top:2px;
292 padding-bottom:2px;
293 border-collapse:collapse;
294 }
295
296 .list_table .act_as_row.labels, .list_table .act_as_row.initial_balance, .list_table .act_as_row.lines {
297 border-color:gray;
298 border-bottom:1px solid lightGrey;
299 }
300
301 .data_table .act_as_cell {
302 border: 1px solid lightGrey;
303 text-align: center;
304 }
305
306 .data_table .act_as_cell, .list_table .act_as_cell {
307 word-wrap: break-word;
308 }
309
310 .data_table .act_as_row.labels {
311 font-weight: bold;
312 }
313
314 .initial_balance .act_as_cell {
315 font-style:italic;
316 }
317
318 .account_title {
319 font-size:10px;
320 font-weight:bold;
321 page-break-after: avoid;
322 }
323
324 .act_as_cell.amount {
325 word-wrap:normal;
326 text-align:right;
327 }
328
329 .list_table .act_as_cell{
330 padding-left: 5px;
331 /* border-right:1px solid lightGrey; uncomment to active column lines */
332 }
333 .list_table .act_as_cell.first_column {
334 padding-left: 0px;
335 /* border-left:1px solid lightGrey; uncomment to active column lines */
336 }
337
338 .sep_left {
339 border-left: 1px solid lightGrey;
340 }
341
342 .account_level_1 {
343 text-transform: uppercase;
344 /*font-weight: bold;*/
345 font-size: 15px;
346 background-color:#F0F0F0;
347 }
348
349 /*
350 .account_level_1 .act_as_cell {
351 height: 30px;
352 vertical-align: bottom;
353 }
354 */
355
356 .account_level_2 {
357 /*text-transform: uppercase;
358 font-weight: bold;*/
359 font-size: 12px;
360 background-color:#F0F0F0;
361 }
362
363 /*
364 .account_level_2 .act_as_cell {
365 height: 20px;
366 vertical-align: bottom;
367 }
368
369 .account_level_3 {
370 text-transform: uppercase;
371 font-weight: bold;
372 font-size: 11px;
373 background-color:#FAFAFA;
374 }
375
376 .account_level_4 {
377 font-weight: bold;
378 font-size: 11px;
379 }
380 */
381
382 .account_level_5 {
383
384 }
385
386 .regular_account_type {
387 font-weight: normal;
388 }
389
390 .view_account_type {
391 font-weight: bold;
392
393 .account_level_consol {
394 font-weight: normal;
395 font-style: italic;
396 }
397
398 .overflow_ellipsis {
399 text-overflow: ellipsis;
400 overflow: hidden;
401 white-space: nowrap;
402 }
403
404 ]]>
405 </field>
406 <field name="name">Financial Portrait Header</field>
407 </record>
408 </data>
409 </openerp>