informe_venta_general_view2.xml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <template id="report_ventagral2">
  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 ventas por producto</h4>
  27. <div class="logo1" />
  28. <table class="table table-condensed">
  29. <thead class="crm_tcab">
  30. <tr class="active">
  31. <th>Producto</th>
  32. <th class="text-right">Precio Unit.</th>
  33. <th class="text-right">Cantidad</th>
  34. <th class="text-right">Sub Total</th>
  35. </tr>
  36. </thead>
  37. <t t-foreach="docs" t-as="o">
  38. <tbody>
  39. <tr>
  40. <td>
  41. <span t-field="o.product_id"/>
  42. </td>
  43. <td class="text-right">
  44. <span t-esc="o.price_unit"/>
  45. </td>
  46. <td class="text-right">
  47. <span t-field="o.product_uom_qty"/>
  48. </td>
  49. <td class="text-right">
  50. <span t-field="o.price_total"/>
  51. </td>
  52. <td class="text-right">
  53. <span t-field="o.date"/>
  54. </td>
  55. </tr>
  56. </tbody>
  57. </t>
  58. <tr>
  59. <td colspan="4"></td>
  60. </tr>
  61. <tr class="border-black">
  62. <td colspan="2">Total:</td>
  63. <td class="text-right">
  64. <t t-set="total" t-value="sum([x.product_uom_qty for x in docs])"/>
  65. <span t-esc="total"/>
  66. </td>
  67. <td class="text-right">
  68. <t t-set="total1" t-value="sum([r.price_total for r in docs])"/>
  69. <span t-esc="total1"/>
  70. </td>
  71. </tr>
  72. </table>
  73. </div>
  74. </t>
  75. </t>
  76. </template>
  77. </data>
  78. </openerp>