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.

161 lines
7.6 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="description" on_change="onchange_description(description, context)"/>
  36. <field name="name" on_change="onchange_name(name, context)"/>
  37. <field name="expression"/>
  38. <field name="type" on_change="onchange_type(type, context)"/>
  39. <field name="dp" attrs="{'invisible': [('type', '=', 'str')]}"/>
  40. <field name="divider" attrs="{'invisible': [('type', '=', 'str')]}"/>
  41. <field name="suffix"/>
  42. <field name="compare_method" attrs="{'invisible': [('type', '=', 'str')]}"/>
  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. <field name="target_move"/>
  96. </tree>
  97. </field>
  98. </record>
  99. <record model="ir.ui.view" id="mis_report_instance_view_form">
  100. <field name="name">mis.report.instance.view.form</field>
  101. <field name="model">mis.report.instance</field>
  102. <field name="priority" eval="16"/>
  103. <field name="arch" type="xml">
  104. <form string="MIS Report Instance" version="7.0">
  105. <sheet>
  106. <div class="oe_title">
  107. <div class="oe_edit_only">
  108. <label for="name"/>
  109. </div>
  110. <h1>
  111. <field name="name" placeholder="Name"/>
  112. </h1>
  113. </div>
  114. <div class="oe_right oe_button_box" name="buttons">
  115. <button type="action" name="%(mis_report_instance_result_action)d" string="Preview" />
  116. <button type="action" name="%(mis_report_instance_add_to_dashboard_action)d" string="Add to dashboard" />
  117. </div>
  118. <group col="2">
  119. <field name="description"/>
  120. <field name="report_id"/>
  121. <field name="target_move"/>
  122. <field name="date"/>
  123. <field name="period_ids">
  124. <tree string="KPI's" editable="bottom">
  125. <field name="sequence" widget="handle"/>
  126. <field name="name"/>
  127. <field name="type"/>
  128. <field name="offset"/>
  129. <field name="duration"/>
  130. <field name="date_from"/>
  131. <field name="date_to"/>
  132. <field name="period_from"/>
  133. <field name="period_to"/>
  134. </tree>
  135. </field>
  136. </group>
  137. </sheet>
  138. </form>
  139. </field>
  140. </record>
  141. <record model="ir.actions.act_window" id="mis_report_instance_view_action">
  142. <field name="name">mis.report.instance.view.action</field>
  143. <field name="view_id" ref="mis_report_instance_view_tree"/>
  144. <field name="res_model">mis.report.instance</field>
  145. <field name="view_type">form</field>
  146. <field name="view_mode">tree,form</field>
  147. </record>
  148. <menuitem id="mis_report_instance_view_menu" parent="base.menu_reporting_config" name="MIS Report Instances" action="mis_report_instance_view_action"/>
  149. </data>
  150. </openerp>