You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

409 lines
11 KiB

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