informe_hr_contrato.xml 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <report
  5. id="report_hr_contrato_id"
  6. string="Gastos HR Contratos"
  7. model="hr.contract"
  8. report_type="qweb-pdf"
  9. name="informes_hr_contrato.report_contrato1"
  10. file="informes_hr_contrato.report_contrato1"
  11. />
  12. <template id="report_contrato1">
  13. <t t-call="report.html_container">
  14. <t t-call="report.external_layout">
  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. .sale_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 HR Contratos</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">Descripción</th>
  45. <th class="text-center">Empleado/a</th>
  46. <th class="text-center">Tipo</th>
  47. <th class="text-center">Cargo</th>
  48. <th class="text-right">Salario</th>
  49. <th class="text-center">Fecha</th>
  50. </tr>
  51. </thead>
  52. <t t-foreach="docs" t-as="o">
  53. <tbody class="sale_tbody">
  54. <td class="text-left">
  55. <span t-field="o.name"/>
  56. </td>
  57. <td class="text-left">
  58. <span t-field="o.employee_id.name"/>
  59. </td>
  60. <td class="text-left">
  61. <span t-field="o.type_id"/>
  62. </td>
  63. <td class="text-right">
  64. <span t-field="o.job_id"/>
  65. </td>
  66. <td class="text-right">
  67. <span t-field="o.wage"/>
  68. </td>
  69. <td class="text-right">
  70. <span t-field="o.create_date" t-field-options='{"widget": "date"}'/>
  71. </td>
  72. </tbody>
  73. </t>
  74. <tr>
  75. <td colspan="6"></td>
  76. </tr>
  77. <tr class="border-black">
  78. <td colspan="3">Total:</td>
  79. <td class="text-right">
  80. <t t-set="total" t-value="sum([x.wage for x in docs])"/>
  81. <span t-esc="total" t-esc-options='{"widget": "monetary", "display_currency": "res_company.currency_id"}'/>
  82. </td>
  83. </tr>
  84. </table>
  85. </div>
  86. </t>
  87. </t>
  88. </template>
  89. </data>
  90. </openerp>