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.

58 lines
2.6 KiB

  1. <template>
  2. <t t-name="mis_builder.MisReport">
  3. <p> </p>
  4. <table t-if="widget.mis_report_data" class="oe_list_content mis_builder">
  5. <thead>
  6. <tr class="oe_list_header_columns">
  7. <th class="oe_list_header_char"></th>
  8. <t t-foreach="widget.mis_report_data.header" t-as="h">
  9. <th t-foreach="h_value.cols" t-as="col" class="oe_list_header_char mis_builder_ralign">
  10. <div>
  11. <t t-esc="col.name"/>
  12. </div>
  13. <div>
  14. <t t-esc="col.date"/>
  15. </div>
  16. </th>
  17. </t>
  18. </tr>
  19. </thead>
  20. <tbody>
  21. <tr t-foreach="widget.mis_report_data.content" t-as="c">
  22. <td t-att="{'style': c_value.default_style}">
  23. <div>
  24. <t t-esc="c_value.kpi_name"/>
  25. </div>
  26. </td>
  27. <t t-foreach="c_value.cols" t-as="value">
  28. <td t-att="{'style': c_value.default_style}" class="mis_builder_ralign">
  29. <div t-att="{'style': value_value.style, 'title': value_value.val_c}">
  30. <t t-if="value_value.drilldown">
  31. <a href="javascript:void(0)"
  32. class="mis_builder_drilldown"
  33. t-att-data-drilldown="JSON.stringify(value_value.drilldown)"
  34. t-att-data-period-id="JSON.stringify(value_value.period_id)"
  35. t-att-data-expr="JSON.stringify(value_value.expr)"
  36. >
  37. <t t-esc="value_value.val_r"/>
  38. </a>
  39. </t>
  40. <t t-if="!value_value.drilldown">
  41. <t t-esc="value_value.val_r"/>
  42. </t>
  43. </div>
  44. </td>
  45. </t>
  46. </tr>
  47. </tbody>
  48. <tfoot>
  49. <tr>
  50. <td class="oe_list_footer" />
  51. <t t-foreach="widget.mis_report_data.header" t-as="f">
  52. <td t-foreach="f_value.cols" class="oe_list_footer" />
  53. </t>
  54. </tr>
  55. </tfoot>
  56. </table>
  57. </t>
  58. </template>