report_recibo2ca.xml 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <report id="informe_recibo_2ca"
  5. model="account.voucher"
  6. string="Recibo"
  7. report_type="qweb-html"
  8. name="recibo_2ca.recibo_2ca"
  9. file="recibo_2ca.recibo_2ca"
  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="recibo_2ca">
  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: 3.0mm;
  31. font-family: Arial, Helvetica, sans-serif;
  32. }
  33. div{
  34. padding: 0px;
  35. }
  36. .pagina{
  37. width:19.3cm;
  38. }
  39. .logo{
  40. width: 100%;
  41. top: -0.12cm;
  42. top: 0px;
  43. }
  44. .logo3{
  45. width: 100%;
  46. min-height: 0.2cm;
  47. }
  48. .fecha_emision_data{
  49. width: 12.5cm;
  50. padding-left: 9.7cm;
  51. float: left;
  52. min-height: 1.6cm;
  53. }
  54. .contado_x{
  55. width: 1.0cm;
  56. float: left;
  57. padding-left: 1.1cm;
  58. min-height: 1.6cm;
  59. }
  60. .credito_x{
  61. width: 4.5cm;
  62. float: left;
  63. padding-left: 1.3cm;
  64. min-height: 1.6cm;
  65. }
  66. .linea2{
  67. position: relative;
  68. top: -0.12cm;
  69. min-height: 0.4cm;
  70. }
  71. .razon_data{
  72. width: 11.cm;
  73. float: left;
  74. padding-left: 12.9cm;
  75. min-height: 2.1cm;
  76. }
  77. .linea3{
  78. position: relative;
  79. top: -0.12cm;
  80. min-height: 0.4cm;
  81. }
  82. .direccion_data{
  83. width: 16cm;
  84. float: left;
  85. padding-left: 13.5cm;
  86. min-height: 1.0cm;
  87. }
  88. .linea4{
  89. position: relative;
  90. top: -0.12cm;
  91. min-height: 0.4cm;
  92. }
  93. .ruc_data{
  94. width: 13.9cm;
  95. float: left;
  96. padding-left: 8.5cm;
  97. min-height: 1.5cm;
  98. }
  99. .telefono_data{
  100. width: 4.8cm;
  101. float: right;
  102. padding-left: 0.9cm;
  103. min-height: 1.5cm;
  104. }
  105. .linea5{
  106. position: relative;
  107. top: -0.12cm;
  108. min-height: 0.4cm;
  109. }
  110. .nota_remision_data{
  111. width: 8.3cm;
  112. float: left;
  113. padding-left: 2.5cm;
  114. min-height: 0.5cm;
  115. }
  116. .cab-articulos{
  117. height: 0.5cm;
  118. clear: both;
  119. }
  120. .divisoria2{
  121. position: relative;
  122. top: -0.12cm;
  123. min-height: 2.9cm;
  124. }
  125. .descripcion4{
  126. width: 13cm;
  127. padding-left: 5.9cm;
  128. float: left;
  129. min-height: 1.6cm;
  130. }
  131. .divisoria3{
  132. position: relative;
  133. top: -0.12cm;
  134. min-height: 0.5cm;
  135. }
  136. .descripcion5{
  137. width: 18.7cm;
  138. padding-left: 8.9cm;
  139. float: left;
  140. min-height: 1.1cm;
  141. }
  142. .divisoria4{
  143. position: relative;
  144. top: -0.12cm;
  145. min-height: 0.5cm;
  146. }
  147. .fecha{
  148. width: 13cm;
  149. padding-left: 2cm;
  150. float: left;
  151. min-height: 0.5cm;
  152. }
  153. .logo1{
  154. min-height: 3.7cm;
  155. width: 100%;
  156. top: 0px;
  157. }
  158. .logo2{
  159. min-height: 3.6cm;
  160. width: 100%;
  161. top: 0px;
  162. }
  163. </style>
  164. <t t-foreach="docs" t-as="o">
  165. <div class="pagina">
  166. <div class="logo"> </div>
  167. <div class="logo3"> </div>
  168. <div class="linea1">
  169. <div class="fecha_emision_data"></div>
  170. <div class="contado_x">
  171. </div>
  172. <div class="credito_x">
  173. <span t-esc="'{0:,.0f}'.format(o.amount)"/>
  174. </div>
  175. </div>
  176. <div class="linea2">
  177. </div>
  178. <div class="linea3">
  179. <div class="direccion_data">
  180. </div>
  181. </div>
  182. <div class="linea4">
  183. <td style="font-size:2.5px;">
  184. <div class="ruc_data"><span t-field="o.partner_id.name"/></div>
  185. <div class="telefono_data"><span t-field="o.partner_id.ruc"/></div>
  186. </td>
  187. </div>
  188. <div class="linea5">
  189. </div>
  190. <div class="divisoria2">
  191. <div class="descripcion4"><span t-esc="convertir(o.amount,o.currency_id.en_letras1)"/></div>
  192. </div>
  193. <div class="cab-articulos"> </div>
  194. <div class="divisoria3">
  195. <div class="descripcion5"><span t-field="o.comment_obs"/></div>
  196. </div>
  197. <div class="divisoria4">
  198. <div class="fecha"><span t-field="o.date" t-field-options='{"format": "dd MMM yyyy"}'/></div>
  199. </div>
  200. </div>
  201. <t t-if="i == 1">
  202. <div class="logo1"> </div>
  203. </t>
  204. <t t-if="i == 2">
  205. <div class="logo2"> </div>
  206. </t>
  207. </t>
  208. </div>
  209. </t>
  210. </t>
  211. </t>
  212. </template>
  213. </data>
  214. </openerp>