ticket_orden_imperio.xml 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <report id="ticket_orden_imperio"
  5. model="sale.order"
  6. string="Ticket"
  7. report_type="qweb-html"
  8. name="ticket_orden_imperio.report_ticket_ordenimperio"
  9. file="ticket_orden_imperio.report_ticket_ordenimperio"
  10. />
  11. <record id="paperformat_lowmargin" model="report.paperformat">
  12. <field name="name">Ticket Imperio</field>
  13. <field name="default" eval="True" />
  14. <field name="format">custom</field>
  15. <field name="page_height">150</field>
  16. <field name="page_width">60</field>
  17. <field name="orientation">Portrait</field>
  18. <field name="margin_top">3</field>
  19. <field name="margin_bottom">3</field>
  20. <field name="margin_left">3</field>
  21. <field name="margin_right">3</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="ticket_orden_imperio.ticket_orden_imperio" model="ir.actions.report.xml">
  27. <field name="paperformat_id" ref="ticket_orden_imperio.paperformat_lowmargin" />
  28. </record>
  29. <template id="report_ticket_ordenimperio">
  30. <t t-call="report.html_container">
  31. <!-- <t t-foreach="[1,2,3]" t-as="i"> -->
  32. <div class="page">
  33. <style>
  34. .logo{
  35. height: 1.71cm;
  36. width: 100%;
  37. top: 0px;
  38. }
  39. .table-condensed>tbody>tr>td {
  40. padding: 1px !important;
  41. }
  42. .borderless td, .borderless th {
  43. border: none !important;
  44. }
  45. .logo1{
  46. height: 2.61cm;
  47. width: 100%;
  48. top: 0px;
  49. }
  50. .logo2{
  51. height: 3.30cm;
  52. width: 100%;
  53. top: 0px;
  54. }
  55. </style>
  56. <t t-foreach="docs" t-as="o">
  57. <div class="pagina">
  58. <div class="row">
  59. <div class="col-xs-4">
  60. <!--
  61. ======================================================================
  62. CABECERA
  63. ======================================================================
  64. -->
  65. <div style="height:1.5cm;">
  66. <div style="width:12cm;padding-top:0.4cm;padding-right:5.0cm;font-size:9.5px;font-family: Arial;text-align: center;">
  67. <div>
  68. <span t-field="o.date_order" t-options='{"format": "dd/mm/aaaa hh.mm.ss"}'/>
  69. </div>
  70. <div>
  71. <span t-field="o.name"/>-<span t-field="o.user_id"/>
  72. </div>
  73. </div>
  74. </div>
  75. <div style="height:1.0cm;">
  76. <div style="width:12cm;font-size:12px;font-family: Arial;padding-right:5.0cm;">
  77. <div style="text-align: center;">
  78. <b> FERRETERIA IMPERIO</b>
  79. </div>
  80. </div>
  81. </div>
  82. <div style="height:1.5cm;">
  83. <div style="width:12cm;padding-right:5.0cm;font-size:10.5px;font-family: Arial;">
  84. <div>
  85. &amp;nbsp;&amp;nbsp;
  86. <b>Cliente: </b><span t-field="o.partner_id.name"/>
  87. </div>
  88. <div>
  89. &amp;nbsp;&amp;nbsp;
  90. <b>C.I.Nº / R.U.C.: </b><span t-field="o.partner_id.ruc"/>
  91. </div>
  92. </div>
  93. </div>
  94. <div style="height:1.5cm;">
  95. <div style="width:12cm;padding-center:5.0cm;font-size:18.5px;font-family: Arial;">
  96. <div>
  97. <b>Nº: </b><span t-field="o.name"/>
  98. &amp;nbsp;&amp;nbsp;
  99. </div>
  100. </div>
  101. </div>
  102. <div style="height:1.5cm;">
  103. <div style="width:12cm;text-align: left;font-size:12.5px;font-family: Arial;">
  104. <div>
  105. <b>Monto: </b><span t-esc="'{0:,.0f}'.format(o.amount_total)"/>
  106. </div>
  107. </div>
  108. </div>
  109. <div style="width:12cm;padding-right:5.0cm;text-align: left;font-size:10.5px;font-family: Arial;">
  110. <b>SOLICITE EN CAJA SU FACTURA LEGAL</b>
  111. </div>
  112. </div>
  113. </div>
  114. </div>
  115. </t>
  116. </div>
  117. </t>
  118. </template>
  119. </data>
  120. </openerp>