informe_salevariant_general_view.xml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <template id="report_salegralxproduct">
  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">Analisis de ventas normal por producto/cliente</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">Marca</th>
  33. <th class="text-right">Categoria</th>
  34. <th class="text-right">Cantidad</th>
  35. </tr>
  36. </thead>
  37. <t t-foreach="docs" t-as="o">
  38. <tbody>
  39. <tr>
  40. <td class="text-left">
  41. <span t-field="o.product_id"/>
  42. </td>
  43. <td class="text-right">
  44. <span t-field="o.product_brand_id"/>
  45. </td>
  46. <td class="text-right">
  47. <span t-field="o.product_categ_id"/>
  48. </td>
  49. <td class="text-right">
  50. <span t-field="o.product_qty"/>
  51. </td>
  52. </tr>
  53. </tbody>
  54. </t>
  55. <tr>
  56. <td colspan="4"></td>
  57. </tr>
  58. <tr class="border-black">
  59. <td colspan="2">Cant. Total:</td>
  60. <td class="text-right">
  61. <t t-set="total" t-value="sum([x.product_qty for x in docs])"/>
  62. <span t-esc="total"/>
  63. </td>
  64. </tr>
  65. </table>
  66. </div>
  67. </t>
  68. </t>
  69. </template>
  70. </data>
  71. </openerp>