product_coste_valorizado_view.xml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <report id="list_coste_product_valorizado" model="product.template" string="Precio Coste Valorizado" report_type="qweb-pdf"
  5. name="report_product.product_coste_valorizado_view" file="report_product.product_coste_valorizado_view" />
  6. <template id="product_coste_valorizado_view">
  7. <t t-call="report.html_container">
  8. <t t-call="report.internal_layout">
  9. <div class="page">
  10. <style type="text/css">
  11. .crm_tcab{
  12. font-size: 3mm;
  13. font-family: Arial, Helvetica, sans-serif;
  14. }
  15. .crm_tbody{
  16. font-size: 2.8mm;
  17. font-family: Arial, Helvetica, sans-serif;
  18. }
  19. </style>
  20. <h2 class="text-center"><strong>Listado de Precio Coste de Productos Valorizado</strong></h2>
  21. <table class="table table-condensed">
  22. <thead class="crm_tcab">
  23. <tr class="active">
  24. <th><strong>Producto</strong></th>
  25. <th><strong>Referencia de Fabrica</strong></th>
  26. <th class="text-right"><strong>Cantidad</strong></th>
  27. <th class="text-right"><strong>Precio de Coste</strong></th>
  28. <th class="text-right"><strong>Coste Valoreizado</strong></th>
  29. </tr>
  30. </thead>
  31. <t t-foreach="docs" t-as="o">
  32. <tbody class="crm_tbody">
  33. <tr>
  34. <td> <span t-field="o.name"/> </td>
  35. <td> <span t-field="o.factory_reference"/> </td>
  36. <td class="text-right"> <span t-field="o.qty_available"/></td>
  37. <td class="text-right"> <span t-field="o.standard_price"/> </td>
  38. <t t-set="total" t-value="o.qty_available * o.standard_price"/>
  39. <td class="text-right"> <span t-esc="total"/> </td>
  40. </tr>
  41. </tbody>
  42. </t>
  43. <tr class="border-black">
  44. <td colspan="4">Total:</td>
  45. <td class="text-right">
  46. <!-- <t t-set="standard_pri" t-value="sum([x.standard_price for x in docs])"/> -->
  47. <t t-set="tot" t-value="sum([(x.qty_available * x.standard_price) for x in docs])"/>
  48. <!-- <t t-set="tot" t-value="tot"/> -->
  49. <span t-esc="tot"/>
  50. </td>
  51. </tr>
  52. </table>
  53. </div>
  54. </t>
  55. </t>
  56. </template>
  57. </data>
  58. </openerp>