informe_stock_general_view2.xml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <report id="report_ventasgral7"
  5. model="report.stockgral1"
  6. string="Listado General stock"
  7. report_type="qweb-pdf"
  8. name="report_stockgral.informe_stock_general_view2"
  9. file="report_stockgral.informe_stock_general_view2"
  10. />
  11. <template id="informe_stock_general_view2">
  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 General de 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. </tr>
  42. </thead>
  43. <t t-foreach="docs" t-as="o">
  44. <tbody>
  45. <tr>
  46. <td>
  47. <span t-field="o.factory_reference"/>
  48. </td>
  49. <td>
  50. <span t-field="o.product_id"/>
  51. </td>
  52. <td class="text-right">
  53. <span t-field="o.quantity"/>
  54. </td>
  55. </tr>
  56. </tbody>
  57. </t>
  58. <tr>
  59. <td colspan="3"></td>
  60. </tr>
  61. <tr class="border-black">
  62. <td colspan="3">Total:</td>
  63. <td class="text-right">
  64. <t t-set="total" t-value="sum([x.quantity for x in docs])"/>
  65. <span t-esc="total"/>
  66. </td>
  67. </tr>
  68. </table>
  69. </div>
  70. </t>
  71. </t>
  72. </template>
  73. </data>
  74. </openerp>