factura_venta_vermar.xml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <report id="factura_venta_vermar"
  5. model="account.invoice"
  6. string="Factura Legal"
  7. report_type="qweb-html"
  8. name="factura_venta_vermar.report_factura_vermar"
  9. file="factura_venta_vermar.report_factura_vermar"
  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_factura_vermar">
  24. <t t-call="report.html_container">
  25. <t t-call="report.external_layout">
  26. <t t-foreach="[1]" t-as="i">
  27. <div class="page">
  28. <style type="text/css">
  29. body{
  30. font-size: 2.81mm;
  31. font-family: Arial;
  32. }
  33. div{
  34. padding: 0px;
  35. }
  36. .pagina{
  37. width:19.3cm;
  38. }
  39. .logo{
  40. height: 3.7cm;
  41. width: 100%;
  42. top: 0px;
  43. }
  44. .articulos{
  45. height: 3.385cm;
  46. }
  47. .art-col11{
  48. padding-left: 0.2mm;
  49. width:1.5cm;
  50. font-size: 2.9mm;
  51. text-align: center;
  52. vertical-align: top;
  53. min-height: 0.6cm;
  54. }
  55. .art-col13{
  56. padding-left: 0.4cm;
  57. font-size: 3.0mm;
  58. width:1.4cm;
  59. text-align: left;
  60. vertical-align: top;
  61. min-height: 0.6cm;
  62. }
  63. .art-col14{
  64. width:3.3cm;
  65. font-size: 3mm;
  66. padding-left: 0.8mm;
  67. text-align: center;
  68. vertical-align: top;
  69. min-height: 0.6cm;
  70. }
  71. .art-col12{
  72. padding-left: 0.2mm;
  73. width:2.75cm;
  74. font-size: 3mm;
  75. text-align: right;
  76. vertical-align: top;
  77. min-height: 0.6cm;
  78. }
  79. .art-col15{
  80. width:4.92cm;
  81. font-size: 2.9mm;
  82. text-align: right;
  83. vertical-align: top;
  84. min-height: 0.6cm;
  85. }
  86. .art-col16{
  87. width:2.4cm;
  88. font-size: 3mm;
  89. vertical-align: top;
  90. text-align: right;
  91. min-height: 0.6cm;
  92. }
  93. .art-col17{
  94. width:3.2cm;
  95. font-size: 3.5mm;
  96. text-align: right;
  97. vertical-align: top;
  98. min-height: 0.6cm;
  99. }
  100. .fecha_dia{
  101. width: 1cm;
  102. padding-left: 2.1cm;
  103. float: left;
  104. min-height: 0.8cm;
  105. }
  106. .fecha_emision_data{
  107. width: 5cm;
  108. padding-left: 3.4cm;
  109. float: left;
  110. min-height: 0.8cm;
  111. }
  112. .fecha_year{
  113. width: 1cm;
  114. padding-left: 2.1cm;
  115. float: left;
  116. min-height: 0.8cm;
  117. }
  118. .contado_x{
  119. width: 0.5cm;
  120. float: left;
  121. padding-left: 2.0cm;
  122. min-height: 0.8cm;
  123. }
  124. .credito_x{
  125. width: 0.5cm;
  126. float: left;
  127. padding-left: 1.33cm;
  128. min-height: 0.8cm;
  129. }
  130. .linea2{
  131. position: relative;
  132. top: -0.12cm;
  133. min-height: 0.4cm;
  134. }
  135. .razon_data{
  136. width: 15cm;
  137. float: left;
  138. padding-left: 4.3cm;
  139. min-height: 0.8cm;
  140. }
  141. .linea3{
  142. position: relative;
  143. top: -0.12cm;
  144. min-height: 0.4cm;
  145. }
  146. .ruc_data{
  147. width: 10.7cm;
  148. float: left;
  149. padding-left: 1.5cm;
  150. min-height: 0.6cm;
  151. }
  152. .telefono_data{
  153. width: 6.8cm;
  154. float: left;
  155. padding-left: 2.3cm;
  156. min-height: 0.6cm;
  157. }
  158. .linea4{
  159. position: relative;
  160. top: -0.12cm;
  161. min-height: 0.4cm;
  162. }
  163. .cab-articulos{
  164. height: 0.77cm;
  165. clear: both;
  166. }
  167. .articulos{
  168. height: 6.70cm;
  169. }
  170. .art-col1{
  171. width:0.9cm;
  172. text-align: center;
  173. }
  174. .art-col2{
  175. padding-left: 0.8cm;
  176. width:8.9cm;
  177. }
  178. .art-col3{
  179. width:1.9cm;
  180. text-align: right;
  181. }
  182. .art-col4{
  183. width:2.2cm;
  184. text-align: right;
  185. }
  186. .art-col5{
  187. width:2.5cm;
  188. text-align: right;
  189. }
  190. .art-col6{
  191. width:1.9cm;
  192. font-size: 2.94mm;
  193. text-align: right;
  194. }
  195. .logo1{
  196. height: 3.83cm;
  197. width: 100%;
  198. top: 0px;
  199. }
  200. .subtotal_data{
  201. width: 6cm;
  202. float: left;
  203. padding-top: 0.002cm;
  204. padding-left: 2.3cm;
  205. min-height: 1.2cm;
  206. }
  207. .subtotal_excentas{
  208. width: 1.8cm;
  209. float: left;
  210. text-align: right;
  211. padding-left: 10cm;
  212. padding-top: 0.7cm;
  213. min-height: 0.6cm;
  214. }
  215. .subtotal_5{
  216. width: 1cm;
  217. float: left;
  218. padding-left: 1cm;
  219. text-align: right;
  220. padding-top: 0.7cm;
  221. min-height: 0.6cm;
  222. }
  223. .subtotal_10{
  224. width: 2.3cm;
  225. float: left;
  226. padding-left: 0.8cm;
  227. text-align: left;
  228. font-size: 2.94mm;
  229. padding-top: 0.7cm;
  230. min-height: 0.6cm;
  231. }
  232. .total_pagar_data{
  233. width: 16.4cm;
  234. float: left;
  235. padding-top: 0.01mm;
  236. padding-left: 4.8cm;
  237. min-height: 0.88cm;
  238. }
  239. .total_pagar{
  240. width: 2.3cm;
  241. float: right;
  242. padding-top: 0.01mm;
  243. font-size: 2.94mm;
  244. padding-left: 0.8cm;
  245. min-height: 0.88cm;
  246. }
  247. .iva_5_data{
  248. width: 5cm;
  249. float: left;
  250. padding-left: 5.7cm;
  251. min-height: 0.25cm;
  252. }
  253. .iva_10_data{
  254. width: 5.2cm;
  255. float: left;
  256. font-size: 2.92mm;
  257. padding-left: 3.1cm;
  258. min-height: 0.25cm;
  259. }
  260. .iva_total_data{
  261. width: 7cm;
  262. float: left;
  263. font-size: 2.92mm;
  264. padding-left: 5.8cm;
  265. min-height: 0.25cm;
  266. }
  267. </style>
  268. <t t-foreach="docs" t-as="o">
  269. <div class="pagina">
  270. <div class="logo"> </div>
  271. <table class="tab-articulos2">
  272. <td class="art-col11"> </td>
  273. <td class="art-col13">
  274. <span t-field="o.date_invoice" t-field-options='{"format": "dd"}'/>
  275. </td>
  276. <td class="art-col14">
  277. <span t-field="o.date_invoice" t-field-options='{"format": "MMMM"}'/>
  278. </td>
  279. <td class="art-col12">
  280. <span t-field="o.date_invoice" t-field-options='{"format": "yy"}'/>
  281. </td>
  282. <td class="art-col15">
  283. </td>
  284. <td class="art-col16">
  285. <div class="contado_x">
  286. <t t-if="o.contado == True">x</t>
  287. </div>
  288. </td>
  289. <td class="art-col17">
  290. <div class="credito_x">
  291. <t t-if="o.credito == True">x</t>
  292. </div>
  293. </td>
  294. </table>
  295. <!-- <div class="fecha_dia"><span t-field="o.date_invoice" t-field-options='{"format": "dd MMM yyyy"}'/></div> -->
  296. <!-- <td class="fecha_dia">
  297. <span t-field="o.date_invoice" t-field-options='{"format": "dd"}'/>
  298. </td>
  299. <td class="fecha_emision_data">
  300. <span t-field="o.date_invoice" t-field-options='{"format": "MMMM"}'/>
  301. </td>
  302. <td class="fecha_year">
  303. <span t-field="o.date_invoice" t-field-options='{"format": "yy"}'/>
  304. </td> -->
  305. <!-- <div class="contado_x">
  306. <t t-if="o.contado == True">X</t>
  307. <t t-if="o.contado == False"></t>
  308. </div>
  309. <div class="credito_x">
  310. <t t-if="o.credito == True">X</t>
  311. <t t-if="o.credito == False"></t>
  312. </div> -->
  313. <div class="linea2">
  314. <div class="razon_data"><span t-field="o.partner_id.name"/></div>
  315. </div>
  316. <div class="linea3">
  317. <div class="direccion_data">
  318. <div class="ruc_data"><span t-field="o.partner_id.ruc"/></div>
  319. <div class="telefono_data"><span t-field="o.partner_id.phone"/></div>
  320. </div>
  321. </div>
  322. <div class="linea4">
  323. </div>
  324. <div class="cab-articulos"> </div>
  325. <div class="articulos">
  326. <table class="tab-articulos">
  327. <tr t-foreach="o.invoice_line" t-as="l">
  328. <td class="art-col1"><span t-esc="'{0:,.0f}'.format(l.quantity)"/></td>
  329. <td class="art-col2"><span t-field="l.product_id.name"/></td>
  330. <td class="art-col3"><span t-esc="'{0:,.0f}'.format(l.price_unit)"/></td>
  331. <td class="art-col4"> </td>
  332. <td class="art-col5"> </td>
  333. <td class="art-col6"><span t-esc="'{0:,.0f}'.format((l.quantity * l.price_unit))"/></td>
  334. </tr>
  335. </table>
  336. </div>
  337. <div class="subtotal_data"> </div>
  338. <div class="subtotal_excentas"> </div>
  339. <div class="subtotal_5"> </div>
  340. <td style="font-size:7.0px;">
  341. <div class="subtotal_10"><span t-esc="'{0:,.0f}'.format(o.amount_total)"/></div>
  342. </td>
  343. <div class="total_pagar_data">Gs.: <span t-esc="convertir(o.amount_total,o.currency_id.en_letras)"/></div>
  344. <div class="total_pagar"><span t-esc="'{0:,.0f}'.format(o.amount_total)"/></div>
  345. <div class="iva_5_data"> </div>
  346. <div class="iva_10_data"><span t-esc="'{0:,.0f}'.format(o.amount_tax)"/></div>
  347. <div class="iva_total_data"><span t-esc="'{0:,.0f}'.format(o.amount_tax)"/></div>
  348. </div>
  349. <div class="logo1"> </div>
  350. </t>
  351. </div>
  352. </t>
  353. </t>
  354. </t>
  355. </template>
  356. </data>
  357. </openerp>