informe_pos_por_fecha.xml 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <template id="informe_pos_por_fecha">
  5. <t t-call="report.html_container">
  6. <t t-call="report.external_layout">
  7. <div class="page">
  8. <style type="text/css">
  9. .crm_tcab{
  10. font-size: 3mm;
  11. font-family: Arial, Helvetica, sans-serif;
  12. }
  13. .crm_tbody{
  14. font-size: 2.8mm;
  15. font-family: Arial, Helvetica, sans-serif;
  16. }
  17. .logo1{
  18. width: 100%;
  19. top: 1.5cm;
  20. }
  21. .total1{
  22. font-size: 2.8mm;
  23. font-family: Arial, Helvetica, sans-serif;
  24. }
  25. </style>
  26. <h4 class="text-center">Listado de Pos por fecha</h4>
  27. <div class="logo1" />
  28. <table class="table table-condensed">
  29. <thead class="crm_tcab">
  30. <tr class="active">
  31. <th>Fecha</th>
  32. <th class="text-left">Cliente</th>
  33. <th>Producto</th>
  34. <th class="text-center">Cantidad</th>
  35. <th class="text-right">Sub Total</th>
  36. </tr>
  37. </thead>
  38. <t t-foreach="docs" t-as="o">
  39. <tbody>
  40. <tr>
  41. <td class="text-left">
  42. <span t-field="o.date" t-field-options='{"widget": "date"}'/>
  43. </td>
  44. <td class="text-left">
  45. <span t-esc="o.partner_id.name"/>
  46. </td>
  47. <td class="text-left">
  48. <span t-esc="o.product_id.name"/>
  49. </td>
  50. <td class="text-center">
  51. <span t-field="o.product_qty" sum="# of Qty"/>
  52. </td>
  53. <td class="text-right">
  54. <span t-field="o.price_total"/>
  55. </td>
  56. </tr>
  57. </tbody>
  58. </t>
  59. <tr>
  60. <td colspan="5"></td>
  61. </tr>
  62. <tr class="border-black">
  63. <td colspan="3">Total:</td>
  64. <td class="text-right">
  65. <t t-set="total" t-value="sum([x.product_qty for x in docs])"/>
  66. <span t-esc="total"/>
  67. </td>
  68. <td class="text-right">
  69. <t t-set="total1" t-value="sum([r.price_total for r in docs])"/>
  70. <span t-esc="total1"/>
  71. </td>
  72. </tr>
  73. </table>
  74. </div>
  75. </t>
  76. </t>
  77. </template>
  78. </data>
  79. </openerp>