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.

89 lines
2.9 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <openerp>
  3. <data>
  4. <record id="qweb_pdf_export" model="ir.actions.report.xml">
  5. <field name="name">MIS report instance QWEB PDF report</field>
  6. <field name="model">mis.report.instance</field>
  7. <field name="type">ir.actions.report.xml</field>
  8. <field name="report_name">mis_builder.report_mis_report_instance</field>
  9. <field name="report_type">qweb-pdf</field>
  10. <field name="auto" eval="False"/>
  11. </record>
  12. <template id="assets_report" inherit_id="report.assets_common">
  13. <xpath expr="." position="inside">
  14. <link href="/mis_builder/static/src/css/report.css" rel="stylesheet"/>
  15. </xpath>
  16. </template>
  17. <template id="report_mis_report_instance">
  18. <t t-call="report.html_container">
  19. <t t-foreach="docs" t-as="o">
  20. <t t-call="report.internal_layout">
  21. <t t-set="matrix" t-value="o._compute_matrix()"/>
  22. <div class="page">
  23. <h2><span t-field="o.name" /> - <span t-field="o.company_id.name" /></h2>
  24. <div class="mis_table">
  25. <div class="mis_thead">
  26. <div class="mis_row">
  27. <div class="mis_cell mis_collabel"></div>
  28. <t t-foreach="matrix.iter_cols()" t-as="col">
  29. <div class="mis_cell mis_collabel">
  30. <t t-esc="col.description"/>
  31. <t t-if="col.comment">
  32. <br/>
  33. <t t-esc="col.comment"/>
  34. </t>
  35. </div>
  36. <!-- add empty cells because we have no colspan with css tables -->
  37. <t t-foreach="list(col.iter_subcols())[1:]" t-as="subcol">
  38. <div class="mis_cell mis_collabel"></div>
  39. </t>
  40. </t>
  41. </div>
  42. <div class="mis_row">
  43. <div class="mis_cell mis_collabel"></div>
  44. <t t-foreach="matrix.iter_subcols()" t-as="subcol">
  45. <div class="mis_cell mis_collabel">
  46. <t t-esc="subcol.description"/>
  47. <t t-if="subcol.comment">
  48. <br/>
  49. <t t-esc="subcol.comment"/>
  50. </t>
  51. </div>
  52. </t>
  53. </div>
  54. </div>
  55. <div class="mis_tbody">
  56. <div t-foreach="matrix.iter_rows()" t-as="row" class="mis_row">
  57. <div t-att-style="row.style and row.style.to_css_style() or ''" class="mis_cell mis_rowlabel">
  58. <t t-esc="row.description"/>
  59. <t t-if="row.comment">
  60. <br/>
  61. <t t-esc="row.comment"/>
  62. </t>
  63. </div>
  64. <t t-foreach="row.iter_cells()" t-as="cell">
  65. <t t-if="cell">
  66. <div t-att-style="cell.row.style and cell.row.style.to_css_style() or ''" class="mis_cell mis_amount">
  67. <div t-att-style="cell.style and cell.style.to_css_style() or ''">
  68. <t t-esc="cell.val_rendered"/>
  69. </div>
  70. </div>
  71. </t>
  72. <t t-if="not cell">
  73. <div class="mis_cell mis_amount"></div>
  74. </t>
  75. </t>
  76. </div>
  77. </div>
  78. </div>
  79. </div>
  80. </t>
  81. </t>
  82. </t>
  83. </template>
  84. </data>
  85. </openerp>