factura_venta_anillos.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <report id="factura_venta_anillos"
  5. model="account.invoice"
  6. string="Factura Legal"
  7. report_type="qweb-html"
  8. name="factura_venta_anillos.report_factura_anillos"
  9. file="factura_venta_anillos.report_factura_anillos"
  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_anillos">
  24. <t t-call="report.html_container">
  25. <t t-call="report.external_layout">
  26. <t t-foreach="[1,2,3]" 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: 0.1cm;
  41. width: 100%;
  42. top: 0px;
  43. }
  44. .fecha_emision_data{
  45. width: 11.5cm;
  46. padding-left: 6.49cm;
  47. float: left;
  48. min-height: 0.55cm;
  49. }
  50. .contado_x{
  51. width: 1.8cm;
  52. float: right;
  53. padding-left: 14cm;
  54. min-height: 0.55cm;
  55. }
  56. .linea2{
  57. position: relative;
  58. top: -0.12cm;
  59. min-height: 0.5cm;
  60. }
  61. .razon_data{
  62. width: 15cm;
  63. float: left;
  64. padding-left: 6.9cm;
  65. min-height: 0.4cm;
  66. }
  67. .ruc_data{
  68. width: 5.5cm;
  69. float: left;
  70. padding-left: 0.3cm;
  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: 7cm;
  82. min-height: 0.5cm;
  83. }
  84. .linea4{
  85. position: relative;
  86. top: -0.12cm;
  87. min-height: 0.3cm;
  88. }
  89. .telefono_data{
  90. width: 10cm;
  91. float: left;
  92. padding-left: 6.9cm;
  93. min-height: 0.4cm;
  94. }
  95. .linea5{
  96. position: relative;
  97. top: -0.12cm;
  98. min-height: 0.4cm;
  99. }
  100. .contado_x{
  101. width: 13cm;
  102. float: left;
  103. padding-left: 7.6cm;
  104. min-height: 0.4cm;
  105. }
  106. .cab-articulos{
  107. height: 0.75cm;
  108. clear: both;
  109. }
  110. .articulos{
  111. height: 4.91cm;
  112. }
  113. .art-col1{
  114. width:0.9cm;
  115. text-align: center;
  116. }
  117. .art-col2{
  118. padding-left: 0.93cm;
  119. width:1cm;
  120. text-align: center;
  121. }
  122. .art-col3{
  123. padding-left: 0.3cm;
  124. width:9.2cm;
  125. }
  126. .art-col4{
  127. width:1.5cm;
  128. text-align: right;
  129. }
  130. .art-col5{
  131. width:2.2cm;
  132. text-align: right;
  133. }
  134. .art-col6{
  135. width:2.2cm;
  136. text-align: right;
  137. }
  138. .art-col7{
  139. width:1.7cm;
  140. text-align: right;
  141. }
  142. .logo1{
  143. height: 1.37cm;
  144. width: 100%;
  145. top: 0px;
  146. }
  147. .logo2{
  148. height: 1.38cm;
  149. width: 100%;
  150. top: 0px;
  151. }
  152. .logo3{
  153. height: 0.2cm;
  154. width: 100%;
  155. top: 0px;
  156. }
  157. .art-col11{
  158. width:0.9cm;
  159. text-align: center;
  160. }
  161. .art-col12{
  162. padding-left: 0.93cm;
  163. width:1cm;
  164. text-align: center;
  165. }
  166. .art-col13{
  167. padding-left: 0.3cm;
  168. text-align: right;
  169. width:9.2cm;
  170. }
  171. .art-col14{
  172. width:1.5cm;
  173. text-align: right;
  174. }
  175. .art-col15{
  176. width:2.2cm;
  177. text-align: right;
  178. }
  179. .art-col16{
  180. width:2.2cm;
  181. text-align: right;
  182. }
  183. .art-col17{
  184. width:1.7cm;
  185. text-align: left;
  186. }
  187. .subtotal_excentas{
  188. width: 1cm;
  189. float: left;
  190. text-align: right;
  191. padding-left: 0.3cm;
  192. padding-top: 0.5cm;
  193. min-height: 0.2cm;
  194. }
  195. .subtotal_5{
  196. width: 0.7cm;
  197. float: left;
  198. padding-left: 0.3cm;
  199. text-align: right;
  200. padding-top: 0.5cm;
  201. min-height: 0.2cm;
  202. }
  203. .subtotal_10{
  204. width: 2.5cm;
  205. float: right;
  206. padding-left: 1.1cm;
  207. text-align: right;
  208. padding-top: 0.5cm;
  209. min-height: 0.2cm;
  210. }
  211. .total_pagar_data{
  212. width: 11.5cm;
  213. float: left;
  214. padding-top: 1.5cm;
  215. padding-left: 2cm;
  216. min-height: 0.2cm;
  217. }
  218. .total_pagar{
  219. width: 6.2cm;
  220. float: left;
  221. padding-top: 0.4cm;
  222. padding-left: 0.9cm;
  223. min-height: 0.25cm;
  224. }
  225. .iva_5_data{
  226. width:7cm;
  227. float: left;
  228. padding-top: 0.5cm;
  229. padding-left: 6.3cm;
  230. min-height: 0.25cm;
  231. }
  232. .iva_10_data{
  233. width: 5.0cm;
  234. float: left;
  235. padding-top: 0.5cm;
  236. padding-left: 1.5cm;
  237. min-height: 0.25cm;
  238. }
  239. .iva_total_data{
  240. width: 4.2cm;
  241. float: left;
  242. padding-top: 0.5cm;
  243. padding-left: 0.5cm;
  244. min-height: 0.25cm;
  245. }
  246. </style>
  247. <t t-foreach="docs" t-as="o">
  248. <div class="pagina">
  249. <div class="logo"> </div>
  250. <div class="linea1">
  251. <div class="fecha_emision_data">Ciudad del Este,<span t-field="o.date_invoice" t-field-options='{"format": "dd MMMM yyyy"}'/></div>
  252. <div class="ruc_data"><span t-field="o.partner_id.ruc"/></div>
  253. </div>
  254. <div class="linea2">
  255. <div class="razon_data"><span t-field="o.partner_id.name"/></div>
  256. </div>
  257. <div class="linea3">
  258. <div class="direccion_data">
  259. <t t-f="o.partner_id.street"><span t-field="o.partner_id.street"/> <span t-field="o.partner_id.street2"/></t>
  260. <t t-f="not o.partner_id.street"> </t>
  261. </div>
  262. </div>
  263. <div class="linea4">
  264. <div class="telefono_data"><span t-field="o.partner_id.phone"/></div>
  265. </div>
  266. <div class="linea5">
  267. <div class="contado_x">
  268. <t t-if="o.contado"> </t><t t-if="o.credito"> </t>
  269. </div>
  270. </div>
  271. <div class="cab-articulos"> </div>
  272. <div class="articulos">
  273. <table class="tab-articulos">
  274. <tr t-foreach="o.invoice_line" t-as="l">
  275. <td class="art-col1"><span t-esc="'{0:,.0f}'.format(l.quantity)"/></td>
  276. <td class="art-col2"></td>
  277. <td class="art-col3"><span t-field="l.name"/></td>
  278. <td class="art-col4"><span t-esc="'{0:,.0f}'.format(l.price_unit)"/></td>
  279. <td class="art-col5"> </td>
  280. <td class="art-col6"> </td>
  281. <td class="art-col7"><span t-esc="'{0:,.0f}'.format(l.price_unit*l.quantity)"/></td>
  282. </tr>
  283. </table>
  284. </div>
  285. <table class="tab-articulos">
  286. <td class="art-col1"> </td>
  287. <td class="art-col2"> </td>
  288. <td class="art-col3"> </td>
  289. <td class="art-col4"> </td>
  290. <td class="art-col5"> </td>
  291. <td class="art-col6"> </td>
  292. <td class="art-col7"><span t-esc="'{0:,.0f}'.format(o.amount_total)"/></td>
  293. </table>
  294. <div class="logo3"> </div>
  295. <table class="tab-articulos">
  296. <td class="art-col1"> </td>
  297. <td class="art-col2"> </td>
  298. <td class="art-col3"><span t-esc="convertir(o.amount_total,o.currency_id.en_letras)"/></td>
  299. <td class="art-col4"> </td>
  300. <td class="art-col5"> </td>
  301. <td class="art-col6"> </td>
  302. <td class="art-col7"><span t-esc="'{0:,.0f}'.format(o.amount_total)"/></td>
  303. </table>
  304. <div class="logo3"> </div>
  305. <table class="tab-articulos">
  306. <td class="art-col11"> </td>
  307. <td class="art-col12"> </td>
  308. <td class="art-col13"><span t-esc="'{0:,.0f}'.format(o.amount_tax)"/></td>
  309. <td class="art-col14"></td>
  310. <td class="art-col15"></td>
  311. <td class="art-col16"> </td>
  312. <td class="art-col17"><span t-esc="'{0:,.0f}'.format(o.amount_tax)"/></td>
  313. </table>
  314. </div>
  315. <t t-if="i == 1">
  316. <div class="logo1"> </div>
  317. </t>
  318. <t t-if="i == 2">
  319. <div class="logo2"> </div>
  320. </t>
  321. </t>
  322. </div>
  323. </t>
  324. </t>
  325. </t>
  326. </template>
  327. </data>
  328. </openerp>