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.

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