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.

159 lines
7.2 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <openerp>
  3. <data>
  4. <record model="ir.ui.view" id="mis_report_view_tree">
  5. <field name="name">mis.report.view.tree</field>
  6. <field name="model">mis.report</field>
  7. <field name="arch" type="xml">
  8. <tree string="MIS Reports">
  9. <field name="name"/>
  10. <field name="description"/>
  11. </tree>
  12. </field>
  13. </record>
  14. <record model="ir.ui.view" id="mis_report_view_form">
  15. <field name="name">mis.report.view.form</field>
  16. <field name="model">mis.report</field>
  17. <field name="arch" type="xml">
  18. <form string="MIS Report" version="7.0">
  19. <sheet>
  20. <group col="2">
  21. <field name="name"/>
  22. <field name="description"/>
  23. <field name="query_ids">
  24. <tree string="Queries" editable="bottom">
  25. <field name="name"/>
  26. <field name="model_id"/>
  27. <field name="field_ids" domain="[('model_id', '=', model_id)]" widget="many2many_tags"/>
  28. <field name="date_field" domain="[('model_id', '=', model_id), ('ttype', 'in', ('date', 'datetime'))]"/>
  29. <field name="domain"/>
  30. </tree>
  31. </field>
  32. <field name="kpi_ids">
  33. <tree string="KPI's" editable="bottom">
  34. <field name="sequence" widget="handle"/>
  35. <field name="name"/>
  36. <field name="description"/>
  37. <field name="expression"/>
  38. <field name="type"/>
  39. <field name="dp"/>
  40. <field name="divider"/>
  41. <field name="suffix"/>
  42. <field name="compare_method"/>
  43. </tree>
  44. </field>
  45. </group>
  46. </sheet>
  47. </form>
  48. </field>
  49. </record>
  50. <record model="ir.actions.act_window" id="mis_report_view_action">
  51. <field name="name">mis.report.view.action</field>
  52. <field name="view_id" ref="mis_report_view_tree"/>
  53. <field name="res_model">mis.report</field>
  54. <field name="view_type">form</field>
  55. <field name="view_mode">tree,form</field>
  56. </record>
  57. <menuitem id="mis_report_view_menu" parent="base.menu_reporting_config" name="MIS Reports" action="mis_report_view_action"/>
  58. <record model="ir.ui.view" id="mis_report_instance_result_view_form">
  59. <field name="name">mis.report.instance.result.view.form</field>
  60. <field name="model">mis.report.instance</field>
  61. <field name="priority" eval="17"/>
  62. <field name="arch" type="xml">
  63. <form string="MIS Report Result" version="7.0">
  64. <sheet>
  65. <div class="oe_title">
  66. <h1>
  67. <field name="name" placeholder="Name"/>
  68. </h1>
  69. </div>
  70. <group>
  71. <field name="description"/>
  72. <field name="pivot_date"/>
  73. </group>
  74. <widget type="mis_report"></widget>
  75. </sheet>
  76. </form>
  77. </field>
  78. </record>
  79. <record model="ir.actions.act_window" id="mis_report_instance_result_action">
  80. <field name="name">mis.report.instance.result.view.action</field>
  81. <field name="view_id" ref="mis_report_instance_result_view_form"/>
  82. <field name="res_model">mis.report.instance</field>
  83. <field name="view_type">form</field>
  84. <field name="view_mode">form</field>
  85. <field name="target">new</field>
  86. </record>
  87. <record model="ir.ui.view" id="mis_report_instance_view_tree">
  88. <field name="name">mis.report.instance.view.tree</field>
  89. <field name="model">mis.report.instance</field>
  90. <field name="arch" type="xml">
  91. <tree string="MIS Report Instances">
  92. <field name="report_id"/>
  93. <field name="name"/>
  94. <field name="description"/>
  95. </tree>
  96. </field>
  97. </record>
  98. <record model="ir.ui.view" id="mis_report_instance_view_form">
  99. <field name="name">mis.report.instance.view.form</field>
  100. <field name="model">mis.report.instance</field>
  101. <field name="priority" eval="16"/>
  102. <field name="arch" type="xml">
  103. <form string="MIS Report Instance" version="7.0">
  104. <sheet>
  105. <div class="oe_title">
  106. <div class="oe_edit_only">
  107. <label for="name"/>
  108. </div>
  109. <h1>
  110. <field name="name" placeholder="Name"/>
  111. </h1>
  112. </div>
  113. <div class="oe_right oe_button_box" name="buttons">
  114. <button type="action" name="%(mis_report_instance_result_action)d" string="Preview" />
  115. <button type="action" name="%(mis_report_instance_add_to_dashboard_action)d" string="Add to dashboard" />
  116. </div>
  117. <group col="2">
  118. <field name="description"/>
  119. <field name="report_id"/>
  120. <field name="date"/>
  121. <field name="period_ids">
  122. <tree string="KPI's" editable="bottom">
  123. <field name="sequence" widget="handle"/>
  124. <field name="name"/>
  125. <field name="type"/>
  126. <field name="offset"/>
  127. <field name="duration"/>
  128. <field name="date_from"/>
  129. <field name="date_to"/>
  130. <field name="period_from"/>
  131. <field name="period_to"/>
  132. </tree>
  133. </field>
  134. </group>
  135. </sheet>
  136. </form>
  137. </field>
  138. </record>
  139. <record model="ir.actions.act_window" id="mis_report_instance_view_action">
  140. <field name="name">mis.report.instance.view.action</field>
  141. <field name="view_id" ref="mis_report_instance_view_tree"/>
  142. <field name="res_model">mis.report.instance</field>
  143. <field name="view_type">form</field>
  144. <field name="view_mode">tree,form</field>
  145. </record>
  146. <menuitem id="mis_report_instance_view_menu" parent="base.menu_reporting_config" name="MIS Report Instances" action="mis_report_instance_view_action"/>
  147. </data>
  148. </openerp>