eirumrp_report_template.xml 4.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <openerp>
  3. <data>
  4. <report id="action_report_eiruclaims"
  5. model="mrp.report"
  6. string="MRP Report"
  7. report_type="qweb-pdf"
  8. file="eirumrp_reports.mrp_pdf"
  9. name="eirumrp_reports.mrp_pdf"
  10. />
  11. <template id="mrp_pdf">
  12. <t t-call="report.html_container">
  13. <t t-call="report.internal_layout">
  14. <div class="page">
  15. <div class="header" style="text-align:left;"><h1><strong>Informes órdenes de producción</strong></h1></div>
  16. <div class="row mt32 mb32" style="text-align:left;">
  17. <div class="col-xs-12">
  18. <h3> <strong> <p t-esc="res_company.name"/></strong></h3>
  19. <strong>Fecha informe:</strong>
  20. <p t-esc="get_date()"/>
  21. </div>
  22. </div>
  23. <table class="table table-condensed">
  24. <thead>
  25. <tr >
  26. <th style="background-color:#9b9da0 !important;">Referencia</th>
  27. <th style="background-color:#9b9da0 !important;">Imagen</th>
  28. <th style="background-color:#9b9da0 !important;">Producto</th>
  29. <th style="background-color:#9b9da0 !important;">Cantidad</th>
  30. <th style="background-color:#9b9da0 !important;">Unidad</th>
  31. <th style="background-color:#9b9da0 !important;">Costo unitario</th>
  32. <th style="background-color:#9b9da0 !important;">Costo prod.</th>
  33. <th style="background-color:#9b9da0 !important;">Responsable</th>
  34. <th style="background-color:#9b9da0 !important;">Fecha inicio</th>
  35. <th style="background-color:#9b9da0 !important;">Estado</th>
  36. </tr>
  37. </thead>
  38. <tbody>
  39. <t t-foreach="get_details(data)" t-as="o">
  40. <tr>
  41. <td>
  42. <span t-esc="o.name"/>
  43. </td>
  44. <td>
  45. <img t-if="o.product_id.image_medium" t-att-src="'data:image/png;base64,%s' % o.product_id.image_medium" style="max-height: 40px;"/>
  46. </td>
  47. <td>
  48. <span t-esc="o.product_id.name"/>
  49. </td>
  50. <td>
  51. <span t-esc="o.product_qty"/>
  52. </td>
  53. <td>
  54. <span t-esc="o.product_uom.name"/>
  55. </td>
  56. <td>
  57. <span t-esc="o.prod_price_unit"/>
  58. </td>
  59. <td>
  60. <span t-esc="o.product_price"/>
  61. </td>
  62. <td>
  63. <span t-esc="o.user_id.name"/>
  64. </td>
  65. <td>
  66. <span t-esc="o.date_planned"/>
  67. </td>
  68. <td>
  69. <span t-esc="o.state"/>
  70. </td>
  71. </tr>
  72. </t>
  73. </tbody>
  74. </table>
  75. </div>
  76. </t>
  77. </t>
  78. </template>
  79. </data>
  80. </openerp>