informe_compras_generales.xml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <report id="informe_compras_generales"
  5. model="purchase.order"
  6. string="Listado de Compras Generales"
  7. report_type="qweb-pdf"
  8. name="informes_compras_generales.report_purchase2"
  9. file="informes_compras_generales.report_purchase2"
  10. />
  11. <template id="report_purchase2">
  12. <t t-call="report.html_container">
  13. <t t-call="report.external_layout">
  14. <div class="header">-</div>
  15. <div class="page">
  16. <style type="text/css">
  17. .crm_tcab{
  18. font-size: 3mm;
  19. font-family: Arial, Helvetica, sans-serif;
  20. }
  21. .veh_tbody{
  22. font-size: 2.8mm;
  23. font-family: Arial, Helvetica, sans-serif;
  24. }
  25. .taxtotal{
  26. font-size: 2.8mm;
  27. }
  28. .total{
  29. font-size: 2.8mm;
  30. }
  31. .untotal{
  32. font-size: 2.8mm;
  33. }
  34. .logo1{
  35. width: 100%;
  36. top: 1.5cm;
  37. }
  38. </style>
  39. <h4 class="text-center">Listado de Compras Generales</h4>
  40. <div class="logo1"> </div>
  41. <table class="table table-bordered">
  42. <thead class="crm_tcab">
  43. <tr class="active">
  44. <th class="text-center">Fecha</th>
  45. <th class="text-center">Referencia</th>
  46. <th class="text-center">Proveedor</th>
  47. <th class="text-center">Monto </th>
  48. <th class="text-center">I.V.A.</th>
  49. <th class="text-center">Monto c/ IVA</th>
  50. <th class="text-center">Estado</th>
  51. </tr>
  52. </thead>
  53. <t t-foreach="docs" t-as="o">
  54. <tbody class="veh_tbody">
  55. <tr>
  56. <td><span t-field="o.date_order"/></td>
  57. <td><span t-esc="o.name"/></td>
  58. <td><span t-esc="o.partner_id.name"/></td>
  59. <td class="text-right">
  60. <span t-field="o.amount_untaxed"
  61. t-field-options='{"widget": "monetary", "display_currency": "res_company.currency_id"}'/>
  62. </td>
  63. <td class="text-right">
  64. <span t-field="o.amount_tax"
  65. t-field-options='{"widget": "monetary", "display_currency": "res_company.currency_id"}'/>
  66. </td>
  67. <td class="text-right">
  68. <span t-field="o.amount_total"
  69. t-field-options='{"widget": "monetary", "display_currency": "res_company.currency_id"}'/>
  70. </td>
  71. <td><span t-field="o.state"/></td>
  72. </tr>
  73. </tbody>
  74. </t>
  75. <tr>
  76. <td colspan="6"></td>
  77. </tr>
  78. <tr class="border-black">
  79. <td colspan="3">Totales</td>
  80. <td class="text-right">
  81. <t t-set="untotal" t-value="sum([x.amount_untaxed for x in docs])"/>
  82. <span t-esc="untotal" t-esc-options='{"widget": "monetary", "display_currency": "res_company.currency_id"}'/>
  83. </td>
  84. <td class="text-right">
  85. <t t-set="taxtotal" t-value="sum([x.amount_tax for x in docs])"/>
  86. <span t-esc="taxtotal" t-esc-options='{"widget": "monetary", "display_currency": "res_company.currency_id"}'/>
  87. </td>
  88. <td class="text-right">
  89. <t t-set="total" t-value="sum([x.amount_total for x in docs])"/>
  90. <span t-esc="total" t-esc-options='{"widget": "monetary", "display_currency": "res_company.currency_id"}'/>
  91. </td>
  92. </tr>
  93. </table>
  94. </div>
  95. </t>
  96. </t>
  97. </template>
  98. </data>
  99. </openerp>