factura_legal_sweas2.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <report id="factura_legal_swineas"
  5. model="account.invoice"
  6. string="Factura Legal"
  7. report_type="qweb-html"
  8. name="factura_venta_swineas.report_legal_swineas"
  9. file="factura_venta_swineas.report_legal_swineas"
  10. />
  11. <template id="report_header_custom" inherit_id="report.external_layout_header">
  12. <xpath expr="//div[@class='header']" position="replace">
  13. <div class ="header">
  14. </div>
  15. </xpath>
  16. </template>
  17. <template id="external_layout_footer" inherit_id="report.external_layout_footer">
  18. <xpath expr="//div[@class='footer']" position="replace">
  19. <div class ="footer">
  20. </div>
  21. </xpath>
  22. </template>
  23. <template id="report_legal_swineas">
  24. <t t-call="report.html_container">
  25. <t t-call="report.external_layout">
  26. <t t-foreach="[1,2]" t-as="i">
  27. <div class="page">
  28. <style type="text/css">
  29. body{
  30. font-size: 2.7mm;
  31. font-family: Arial, Helvetica, sans-serif;
  32. }
  33. div{
  34. padding: 0px;
  35. }
  36. .pagina{
  37. width:19.3cm;
  38. }
  39. .logo{
  40. height: 1.83cm;
  41. width: 100%;
  42. top: 0px;
  43. }
  44. .fecha_emision_data{
  45. width: 10.6cm;
  46. padding-left: 3.8cm;
  47. float: left;
  48. min-height: 0.6cm;
  49. }
  50. .contado_x{
  51. width: 3.7cm;
  52. float: right;
  53. padding-left: 0.7cm;
  54. min-height: 0.6cm;
  55. }
  56. .linea2{
  57. position: relative;
  58. top: -0.12cm;
  59. min-height: 0.5cm;
  60. }
  61. .razon_data{
  62. width: 13cm;
  63. float: left;
  64. padding-left: 4.9cm;
  65. min-height: 0.4cm;
  66. }
  67. .ruc_data{
  68. width: 5.5cm;
  69. float: left;
  70. padding-left: 1.8cm;
  71. min-height: 0.4cm;
  72. }
  73. .linea3{
  74. position: relative;
  75. top: -0.12cm;
  76. min-height: 0.3cm;
  77. }
  78. .direccion_data{
  79. width: 14cm;
  80. float: left;
  81. padding-left: 3.5cm;
  82. min-height: 0.5cm;
  83. }
  84. .telefono_data{
  85. width: 10cm;
  86. float: left;
  87. padding-left: 6.9cm;
  88. min-height: 0.4cm;
  89. }
  90. .linea4{
  91. position: relative;
  92. top: -0.12cm;
  93. min-height: 0.3cm;
  94. }
  95. .linea5{
  96. position: relative;
  97. top: -0.12cm;
  98. min-height: 0.4cm;
  99. }
  100. .cab-articulos{
  101. height: 0.92cm;
  102. clear: both;
  103. }
  104. .articulos{
  105. height: 7.12cm;
  106. }
  107. .art-col1{
  108. width:2.3cm;
  109. text-align: center;
  110. }
  111. .art-col2{
  112. padding-left: 0.93cm;
  113. width:1.8cm;
  114. text-align: center;
  115. }
  116. .art-col3{
  117. padding-left: 0.05cm;
  118. width:7.65cm;
  119. }
  120. .art-col4{
  121. width:1.5cm;
  122. text-align: right;
  123. }
  124. .art-col5{
  125. width:2.2cm;
  126. text-align: right;
  127. }
  128. .art-col6{
  129. width:2.0cm;
  130. text-align: right;
  131. }
  132. .art-col7{
  133. width:1.7cm;
  134. text-align: right;
  135. }
  136. .logo1{
  137. height: 1.85cm;
  138. width: 100%;
  139. top: 0px;
  140. }
  141. .logo2{
  142. height: 3.38cm;
  143. width: 100%;
  144. top: 0px;
  145. }
  146. .logo3{
  147. height: 0.4cm;
  148. width: 100%;
  149. top: 0px;
  150. }
  151. .art-col21{
  152. width:0.9cm;
  153. text-align: center;
  154. }
  155. .art-col22{
  156. padding-left: 0.93cm;
  157. width:1cm;
  158. text-align: center;
  159. }
  160. .art-col23{
  161. padding-left: 0.3cm;
  162. text-align: right;
  163. width:7.2cm;
  164. }
  165. .art-col24{
  166. width:1.5cm;
  167. text-align: right;
  168. }
  169. .art-col25{
  170. width:2.5cm;
  171. text-align: left;
  172. }
  173. .art-col26{
  174. width:2.2cm;
  175. text-align: left;
  176. }
  177. .art-col27{
  178. width:3.4cm;
  179. text-align: right;
  180. }
  181. .subtotal_excentas{
  182. width: 1cm;
  183. float: left;
  184. text-align: right;
  185. padding-left: 0.3cm;
  186. padding-top: 0.5cm;
  187. min-height: 0.2cm;
  188. }
  189. .subtotal_5{
  190. width: 0.7cm;
  191. float: left;
  192. padding-left: 0.3cm;
  193. text-align: right;
  194. padding-top: 0.5cm;
  195. min-height: 0.2cm;
  196. }
  197. .subtotal_10{
  198. width: 2.5cm;
  199. float: right;
  200. padding-left: 1.1cm;
  201. text-align: right;
  202. padding-top: 0.5cm;
  203. min-height: 0.2cm;
  204. }
  205. .total_pagar_data{
  206. width: 11.5cm;
  207. float: left;
  208. padding-top: 1.5cm;
  209. padding-left: 2cm;
  210. min-height: 0.2cm;
  211. }
  212. .total_pagar{
  213. width: 6.2cm;
  214. float: left;
  215. padding-top: 0.4cm;
  216. padding-left: 0.9cm;
  217. min-height: 0.25cm;
  218. }
  219. .iva_5_data{
  220. width:6cm;
  221. float: left;
  222. padding-top: 0.5cm;
  223. padding-left: 6.0cm;
  224. min-height: 0.25cm;
  225. }
  226. .iva_10_data{
  227. width: 5.0cm;
  228. float: left;
  229. padding-top: 0.5cm;
  230. padding-left: 1.5cm;
  231. min-height: 0.25cm;
  232. }
  233. .iva_total_data{
  234. width: 4.2cm;
  235. float: left;
  236. padding-top: 0.5cm;
  237. padding-left: 0.5cm;
  238. min-height: 0.25cm;
  239. }
  240. </style>
  241. <t t-foreach="docs" t-as="o">
  242. <div class="pagina">
  243. <div class="logo"> </div>
  244. <div class="linea1">
  245. <div class="fecha_emision_data"><span t-field="o.date_invoice" t-field-options='{"format": "dd MMMM yyyy"}'/></div>
  246. <div class="contado_x">
  247. <t t-if="o.contado">Contado</t><t t-if="o.credito">Crédito</t>
  248. </div>
  249. </div>
  250. <div class="linea2">
  251. <div class="razon_data"><span t-field="o.partner_id.name"/></div>
  252. <div class="ruc_data"><span t-field="o.partner_id.ruc"/></div>
  253. </div>
  254. <div class="linea3">
  255. <div class="direccion_data">
  256. <t t-f="o.partner_id.street"><span t-field="o.partner_id.street"/> <span t-field="o.partner_id.street2"/></t>
  257. <t t-f="not o.partner_id.street"> </t>
  258. <div class="telefono_data"><span t-field="o.partner_id.phone"/></div>
  259. </div>
  260. </div>
  261. <div class="linea4">
  262. </div>
  263. <div class="linea5">
  264. </div>
  265. <div class="cab-articulos"> </div>
  266. <div class="articulos">
  267. <table class="tab-articulos">
  268. <tr t-foreach="o.invoice_line" t-as="l">
  269. <td class="art-col1"></td>
  270. <td class="art-col2"><span t-esc="'{0:,.0f}'.format(l.quantity)"/></td>
  271. <td class="art-col3"><span t-field="l.name"/></td>
  272. <td class="art-col4"><span t-esc="'{0:,.0f}'.format(l.price_unit)"/></td>
  273. <td class="art-col5"> </td>
  274. <td class="art-col6"> </td>
  275. <td class="art-col7"><span t-esc="'{0:,.0f}'.format(l.price_unit*l.quantity)"/></td>
  276. </tr>
  277. </table>
  278. </div>
  279. <table class="tab-articulos">
  280. <td class="art-col1"> </td>
  281. <td class="art-col2"> </td>
  282. <td class="art-col3"> </td>
  283. <td class="art-col4"> </td>
  284. <td class="art-col5"> </td>
  285. <td class="art-col6"> </td>
  286. <td class="art-col7"><span t-esc="'{0:,.0f}'.format(o.amount_total)"/></td>
  287. </table>
  288. <div class="logo3"> </div>
  289. <table class="tab-articulos1">
  290. <td class="art-col21"> </td>
  291. <td class="art-col22"> </td>
  292. <td class="art-col23"><span t-esc="convertir(o.amount_total,o.currency_id.en_letras)"/> </td>
  293. <td class="art-col24"></td>
  294. <td class="art-col25"> </td>
  295. <td class="art-col26"> </td>
  296. <td class="art-col27"><span t-esc="'{0:,.0f}'.format(o.amount_total)"/></td>
  297. </table>
  298. <div class="logo3"> </div>
  299. <table class="tab-articulos">
  300. <td class="art-col21"> </td>
  301. <td class="art-col22"></td>
  302. <td class="art-col23"> <span t-esc="'{0:,.0f}'.format(o.amount_tax)"/></td>
  303. <td class="art-col24"></td>
  304. <td class="art-col25"></td>
  305. <td class="art-col26"><span t-esc="'{0:,.0f}'.format(o.amount_tax)"/></td>
  306. <td class="art-col27"></td>
  307. </table>
  308. </div>
  309. <t t-if="i == 1">
  310. <div class="logo1"> </div>
  311. </t>
  312. </t>
  313. </div>
  314. </t>
  315. </t>
  316. </t>
  317. </template>
  318. </data>
  319. </openerp>