factura_venta_smileguide.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <report id="factura_venta_smileguide"
  5. model="account.invoice"
  6. string="Factura Legal"
  7. report_type="qweb-html"
  8. name="factura_venta_smileguide.report_factura_smileguide"
  9. file="factura_venta_smileguide.report_factura_smileguide"
  10. />
  11. <record id="paperformat_lowmargin" model="report.paperformat">
  12. <field name="name">Legal</field>
  13. <field name="default" eval="True" />
  14. <field name="format">custom</field>
  15. <field name="page_height">356</field>
  16. <field name="page_width">216</field>
  17. <field name="orientation">Portrait</field>
  18. <field name="margin_top">0</field>
  19. <field name="margin_bottom">0</field>
  20. <field name="margin_left">0</field>
  21. <field name="margin_right">0</field>
  22. <field name="header_line" eval="False" />
  23. <field name="header_spacing">3</field>
  24. <field name="dpi">90</field>
  25. </record>
  26. <record id="factura_venta_smileguide.factura_venta_smileguide" model="ir.actions.report.xml">
  27. <field name="paperformat_id" ref="factura_venta_smileguide.paperformat_lowmargin" />
  28. </record>
  29. <template id="report_factura_smileguide">
  30. <t t-call="report.html_container">
  31. <!-- <t t-call="report.external_layout"> -->
  32. <t t-foreach="[1,2,3]" t-as="i">
  33. <div class="page">
  34. <style type="text/css">
  35. body{
  36. font-size: 2.3mm;
  37. font-family: Arial, Helvetica, sans-serif;
  38. }
  39. div{
  40. padding: 0px;
  41. }
  42. .pagina{
  43. width:19.3cm;
  44. }
  45. .logo{
  46. height: 1.8cm;
  47. width: 100%;
  48. top: 0px;
  49. }
  50. .fecha_emision_data{
  51. width: 14.5cm;
  52. font-size: 2.3mm;
  53. padding-left: 3.2cm;
  54. float: left;
  55. min-height: 0.4cm;.
  56. }
  57. .contado_x{
  58. width: 0.5cm;
  59. float: left;
  60. padding-left: 2.45cm;
  61. min-height: 0.4cm;
  62. }
  63. .credito_x{
  64. width: 0.5cm;
  65. float: left;
  66. padding-left: 0.5cm;
  67. min-height: 0.4cm;
  68. }
  69. .linea2{
  70. position: relative;
  71. top: -0.12cm;
  72. min-height: 0.4cm;
  73. }
  74. .razon_data{
  75. width: 13.7cm;
  76. float: left;
  77. padding-left: 2.5cm;
  78. min-height: 0.4cm;
  79. }
  80. .ruc_data{
  81. width: 4.8cm;
  82. font-size: 2.3mm;
  83. font-family: Arial, Helvetica, sans-serif;
  84. float: right;
  85. padding-left: 1.3cm;
  86. min-height: 0.4cm;
  87. }
  88. .linea3{
  89. position: relative;
  90. top: -0.12cm;
  91. min-height: 0.4cm;
  92. }
  93. .direccion_data{
  94. width: 14.9cm;
  95. font-size: 2.3mm;
  96. font-family: Arial, Helvetica, sans-serif;
  97. float: left;
  98. padding-left: 2.1cm;
  99. min-height: 0.4cm;
  100. }
  101. .telefono_data{
  102. width: 4.7cm;
  103. font-size: 2.3mm;
  104. float: left;
  105. padding-left: 1.3cm;
  106. min-height: 0.4cm;
  107. }
  108. .cab-articulos{
  109. height: 0.36cm;
  110. clear: both;
  111. }
  112. .articulos{
  113. height: 3.86cm;
  114. }
  115. .art-col1{
  116. width:1.7cm;
  117. text-align: right;
  118. }
  119. .art-col2{
  120. padding-left: 0.0cm;
  121. width:1.5cm;
  122. text-align: right;
  123. }
  124. .art-col3{
  125. padding-left: 0.5cm;
  126. width:7.0cm;
  127. }
  128. .art-col4{
  129. width:1.5cm;
  130. text-align: right;
  131. }
  132. .art-col5{
  133. width:2.0cm;
  134. text-align: right;
  135. }
  136. .art-col6{
  137. width:2.1cm;
  138. text-align: right;
  139. }
  140. .art-col7{
  141. width:2.4cm;
  142. text-align: right;
  143. }
  144. .logo1{
  145. height: 3.50cm;
  146. width: 100%;
  147. top: 0px;
  148. }
  149. .logo2{
  150. height: 3.52cm;
  151. width: 100%;
  152. top: 0px;
  153. }
  154. .subtotal_data{
  155. width: 6cm;
  156. float: left;
  157. padding-top: 0.002cm;
  158. padding-left: 2.3cm;
  159. min-height: 0.5cm;
  160. }
  161. .subtotal_excentas{
  162. width: 1.8cm;
  163. float: left;
  164. text-align: right;
  165. padding-left: 10cm;
  166. padding-top: 0.7cm;
  167. min-height: 0.5cm;
  168. }
  169. .subtotal_5{
  170. width: 1cm;
  171. float: left;
  172. padding-left: 1cm;
  173. text-align: right;
  174. padding-top: 0.7cm;
  175. min-height: 0.5cm;
  176. }
  177. .subtotal_10{
  178. width: 2.3cm;
  179. float: left;
  180. padding-left: 0.8cm;
  181. text-align: left;
  182. padding-top: 0.7cm;
  183. min-height: 0.5cm;
  184. }
  185. .total_pagar_data{
  186. width: 16.4cm;
  187. float: left;
  188. padding-top: 0.01mm;
  189. padding-left: 4.8cm;
  190. min-height: 0.3cm;
  191. }
  192. .total_pagar{
  193. width: 2.3cm;
  194. float: right;
  195. padding-top: 0.01mm;
  196. padding-left: 0.8cm;
  197. min-height: 0.3cm;
  198. }
  199. .iva_5_data{
  200. width: 5cm;
  201. float: left;
  202. padding-top: 0.04mm;
  203. padding-left: 4.7cm;
  204. min-height: 0.20cm;
  205. }
  206. .iva_10_data{
  207. width: 5.2cm;
  208. float: left;
  209. padding-left: 3.4cm;
  210. padding-top: 0.04mm;
  211. min-height: 0.20cm;
  212. }
  213. .iva_total_data{
  214. width: 7cm;
  215. float: left;
  216. padding-left: 4.25cm;
  217. padding-top: 0.04mm;
  218. min-height: 0.20cm;
  219. }
  220. </style>
  221. <t t-foreach="docs" t-as="o">
  222. <div class="pagina">
  223. <div class="logo"> </div>
  224. <div class="linea1">
  225. <div class="fecha_emision_data"><span t-field="o.date_invoice" t-field-options='{"format": "dd MMM yyyy"}'/></div>
  226. <div class="contado_x">
  227. <t t-if="o.contado == True">X</t>
  228. <t t-if="o.contado == False"></t>
  229. </div>
  230. <div class="credito_x">
  231. <t t-if="o.credito == True">X</t>
  232. <t t-if="o.credito == False"></t>
  233. </div>
  234. </div>
  235. <div class="linea2">
  236. <div class="razon_data"><span t-field="o.partner_id.name"/></div>
  237. <div class="ruc_data"><span t-field="o.partner_id.ruc"/></div>
  238. </div>
  239. <div class="linea3">
  240. <div class="direccion_data">
  241. <t t-f="o.partner_id.street"><span t-field="o.partner_id.street"/></t>
  242. <t t-f="not o.partner_id.street"> </t>
  243. </div>
  244. <div class="telefono_data"><span t-field="o.partner_id.phone"/></div>
  245. </div>
  246. <div class="cab-articulos"> </div>
  247. <div class="articulos">
  248. <table class="tab-articulos">
  249. <tr t-foreach="o.invoice_line" t-as="l">
  250. <td class="art-col1"><span t-field="l.product_id.default_code"/></td>
  251. <td class="art-col2"><span t-esc="'%.0f'%l.quantity"/></td>
  252. <td class="art-col3"><span t-field="l.product_id.name"/></td>
  253. <td class="art-col4"><span t-esc="'{0:,.0f}'.format(l.price_unit)"/></td>
  254. <td class="art-col5"> </td>
  255. <td class="art-col6"> </td>
  256. <td class="art-col7"><span t-esc="'{0:,.0f}'.format((l.quantity * l.price_unit))"/></td>
  257. </tr>
  258. </table>
  259. <table class="tab-articulos1">
  260. <td class="art-col1"></td>
  261. <td class="art-col2"></td>
  262. <td class="art-col3"><t t-if="o.amount_discount != 0"> Descuento: </t></td>
  263. <td class="art-col4"></td>
  264. <td class="art-col5"> </td>
  265. <td class="art-col6"> </td>
  266. <td class="art-col7">-<span t-esc="'{0:,.0f}'.format(o.amount_discount)"/></td>
  267. <!-- <tr>
  268. <t t-if="o.amount_discount != 0">Descuento: <span t-esc="'{0:,.0f}'.format(o.amount_discount)"/></t>
  269. </tr> -->
  270. </table>
  271. </div>
  272. <div class="subtotal_data"> </div>
  273. <div class="subtotal_excentas"> </div>
  274. <div class="subtotal_5"> </div>
  275. <td style="font-size:7.0px;">
  276. <div class="subtotal_10"><span t-esc="'{0:,.0f}'.format(o.amount_total)"/></div>
  277. </td>
  278. <div class="total_pagar_data">Gs.: <span t-esc="convertir(o.amount_total,o.currency_id.en_letras)"/></div>
  279. <div class="total_pagar"><span t-esc="'{0:,.0f}'.format(o.amount_total)"/></div>
  280. <div class="iva_5_data"> </div>
  281. <div class="iva_10_data"><span t-esc="'{0:,.0f}'.format(o.amount_tax)"/></div>
  282. <div class="iva_total_data"><span t-esc="'{0:,.0f}'.format(o.amount_tax)"/></div>
  283. </div>
  284. <t t-if="i == 1">
  285. <div class="logo1"> </div>
  286. </t>
  287. <t t-if="i == 2">
  288. <div class="logo2"> </div>
  289. </t>
  290. </t>
  291. </div>
  292. </t>
  293. <!-- </t> -->
  294. </t>
  295. </template>
  296. </data>
  297. </openerp>