report_ticket_template.xml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <template id="report_ticket_ferreteria">
  5. <t t-call="report.external_layout">
  6. <div class="page" style="width: 70mm; font-size: 10px; font-family: monospace; margin-top: 5px;">
  7. <t t-foreach="docs" t-as="doc">
  8. <div style="text-align: center;">
  9. <strong><t t-esc="doc.company_id.name"/></strong><br/>
  10. <t t-esc="doc.company_id.actividad or ''"/><br/>
  11. <t t-esc="doc.company_id.street or ''"/><br/>
  12. <t t-esc="doc.company_id.street2 or ''"/><br/>
  13. Tel: <t t-esc="doc.company_id.phone or ''"/><br/>
  14. -------------------------------<br/>
  15. </div>
  16. <div>
  17. <strong>Factura:</strong> <t t-esc="doc.number or doc.name"/><br/>
  18. <strong>Cliente:</strong> <t t-esc="doc.partner_id.name or ''"/><br/>
  19. -------------------------------<br/>
  20. </div>
  21. <table style="width:100%; font-size:11px;">
  22. <thead>
  23. <tr>
  24. <th style="text-align:left;">Cant</th>
  25. <th style="text-align:left;">Descripción</th>
  26. <th style="text-align:right;">Total</th>
  27. </tr>
  28. </thead>
  29. <tbody>
  30. <tr t-foreach="doc.invoice_line" t-as="line">
  31. <td><t t-esc="'{0:,.0f}'.format(line.quantity)"/></td>
  32. <td><t t-esc="line.name"/></td>
  33. <td style="text-align:right;"><t t-esc="'{0:,.0f}'.format((line.quantity * line.price_unit))"/></td>
  34. </tr>
  35. </tbody>
  36. </table>
  37. <div style="border-top: 1px dashed #000; margin-top: 5px;"></div>
  38. <div style="text-align:right;">
  39. <strong>Total: </strong><t t-esc="'{0:,.0f}'.format(doc.amount_total)"/>
  40. </div>
  41. <br/>
  42. <div style="text-align: center;">
  43. Gracias por su compra
  44. </div>
  45. </t>
  46. </div>
  47. </t>
  48. </template>
  49. </data>
  50. </openerp>