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.

155 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="field_name"/>
  29. <field name="date_field" domain="[('model_id', '=', model_id), ('ttype', 'in', ('date', 'datetime'))]"/>
  30. <field name="domain"/>
  31. </tree>
  32. </field>
  33. <field name="kpi_ids">
  34. <tree string="KPI's" editable="bottom">
  35. <field name="sequence" widget="handle"/>
  36. <field name="description" on_change="onchange_description(description, name, context)"/>
  37. <field name="name" on_change="onchange_name(name, context)"/>
  38. <field name="expression"/>
  39. <field name="type" on_change="onchange_type(type, context)"/>
  40. <field name="dp" attrs="{'invisible': [('type', '=', 'str')]}"/>
  41. <field name="divider" attrs="{'invisible': [('type', '=', 'str')]}"/>
  42. <field name="suffix"/>
  43. <field name="compare_method" attrs="{'invisible': [('type', '=', 'str')]}"/>
  44. </tree>
  45. </field>
  46. </group>
  47. </sheet>
  48. </form>
  49. </field>
  50. </record>
  51. <record model="ir.actions.act_window" id="mis_report_view_action">
  52. <field name="name">Mis report</field>
  53. <field name="view_id" ref="mis_report_view_tree"/>
  54. <field name="res_model">mis.report</field>
  55. <field name="view_type">form</field>
  56. <field name="view_mode">tree,form</field>
  57. </record>
  58. <menuitem id="mis_report_view_menu" parent="base.menu_reporting_config" name="MIS Reports" action="mis_report_view_action"/>
  59. <record model="ir.ui.view" id="mis_report_instance_result_view_form">
  60. <field name="name">mis.report.instance.result.view.form</field>
  61. <field name="model">mis.report.instance</field>
  62. <field name="priority" eval="17"/>
  63. <field name="arch" type="xml">
  64. <form string="MIS Report Result" version="7.0">
  65. <widget type="mis_report"></widget>
  66. </form>
  67. </field>
  68. </record>
  69. <record model="ir.actions.act_window" id="mis_report_instance_result_action">
  70. <field name="name">Preview</field>
  71. <field name="view_id" ref="mis_report_instance_result_view_form"/>
  72. <field name="res_model">mis.report.instance</field>
  73. <field name="view_type">form</field>
  74. <field name="view_mode">form</field>
  75. <field name="target">new</field>
  76. </record>
  77. <record model="ir.ui.view" id="mis_report_instance_view_tree">
  78. <field name="name">mis.report.instance.view.tree</field>
  79. <field name="model">mis.report.instance</field>
  80. <field name="arch" type="xml">
  81. <tree string="MIS Report Instances">
  82. <field name="report_id"/>
  83. <field name="name"/>
  84. <field name="description"/>
  85. <field name="target_move"/>
  86. </tree>
  87. </field>
  88. </record>
  89. <record model="ir.ui.view" id="mis_report_instance_view_form">
  90. <field name="name">mis.report.instance.view.form</field>
  91. <field name="model">mis.report.instance</field>
  92. <field name="priority" eval="16"/>
  93. <field name="arch" type="xml">
  94. <form string="MIS Report Instance" version="7.0">
  95. <sheet>
  96. <div class="oe_title">
  97. <div class="oe_edit_only">
  98. <label for="name"/>
  99. </div>
  100. <h1>
  101. <field name="name" placeholder="Name"/>
  102. </h1>
  103. </div>
  104. <div class="oe_right oe_button_box" name="buttons">
  105. <button type="action" name="%(mis_report_instance_result_action)d" string="Preview" />
  106. <button type="action" name="%(mis_report_instance_add_to_dashboard_action)d" string="Add to dashboard" />
  107. </div>
  108. <group col="2">
  109. <field name="description"/>
  110. <field name="report_id"/>
  111. <field name="target_move"/>
  112. <field name="date"/>
  113. <field name="period_ids">
  114. <tree string="KPI's" editable="bottom">
  115. <field name="sequence" widget="handle"/>
  116. <field name="name"/>
  117. <field name="type"/>
  118. <field name="offset"/>
  119. <field name="duration"/>
  120. <field name="date_from"/>
  121. <field name="date_to"/>
  122. <field name="period_from"/>
  123. <field name="period_to"/>
  124. <field name="report_instance_id" invisible="1"/>
  125. <field name="id" invisible="1"/>
  126. <field name="comparison_column_ids" domain="[('report_instance_id', '=', report_instance_id), ('id', '!=', id)]" widget="many2many_tags"/>
  127. <field name="company_id" groups="base.group_multi_company"/>
  128. </tree>
  129. </field>
  130. </group>
  131. </sheet>
  132. </form>
  133. </field>
  134. </record>
  135. <record model="ir.actions.act_window" id="mis_report_instance_view_action">
  136. <field name="name">Mis report instance</field>
  137. <field name="view_id" ref="mis_report_instance_view_tree"/>
  138. <field name="res_model">mis.report.instance</field>
  139. <field name="view_type">form</field>
  140. <field name="view_mode">tree,form</field>
  141. </record>
  142. <menuitem id="mis_report_instance_view_menu" parent="base.menu_reporting_config" name="MIS Report Instances" action="mis_report_instance_view_action"/>
  143. </data>
  144. </openerp>