You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
2.1 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <openerp>
  3. <data>
  4. <template id="report_mis_report_instance">
  5. <t t-call="report.html_container">
  6. <t t-foreach="docs" t-as="o">
  7. <t t-call="report.internal_layout">
  8. <div class="page">
  9. <h2 t-field="o.name"></h2>
  10. <table class="table table-condensed">
  11. <thead>
  12. <t t-foreach="docs_computed[o.id]['header']" t-as="h">
  13. <tr>
  14. <th>
  15. <div>
  16. <t t-esc="h_value['kpi_name']"/>
  17. </div>
  18. </th>
  19. <t t-foreach="h_value['cols']" t-as="col">
  20. <th class="text-center" t-att-colspan="col.get('colspan', 1)">
  21. <div>
  22. <t t-esc="col['name']"/>
  23. </div>
  24. <t t-if="col.get('date')">
  25. <div>
  26. <t t-esc="col['date']"/>
  27. </div>
  28. </t>
  29. </th>
  30. </t>
  31. </tr>
  32. </t>
  33. </thead>
  34. <tbody>
  35. <tr t-foreach="docs_computed[o.id]['content']" t-as="c">
  36. <td t-att-style="c_value['default_style']">
  37. <div class="text-left">
  38. <t t-esc="c_value['kpi_name']"/>
  39. </div>
  40. </td>
  41. <t t-foreach="c_value['cols']" t-as="value">
  42. <td t-att-style="c_value['default_style']">
  43. <div t-att-style="value_value.get('style')" class="text-right">
  44. <t t-esc="value_value['val_r']"/>
  45. </div>
  46. </td>
  47. </t>
  48. </tr>
  49. </tbody>
  50. </table>
  51. </div>
  52. </t>
  53. </t>
  54. </t>
  55. </template>
  56. </data>
  57. </openerp>