informe_stock_general_view1.xml 2.4 KB

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