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.

193 lines
10 KiB

10 years ago
10 years ago
10 years ago
  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_names"/>
  29. <field name="aggregate"/>
  30. <field name="date_field" domain="[('model_id', '=', model_id), ('ttype', 'in', ('date', 'datetime'))]"/>
  31. <field name="domain"/>
  32. </tree>
  33. </field>
  34. <field name="kpi_ids">
  35. <tree string="KPI's" editable="bottom">
  36. <field name="sequence" widget="handle"/>
  37. <field name="description"/>
  38. <field name="name"/>
  39. <field name="expression"/>
  40. <field name="type"/>
  41. <field name="dp" attrs="{'invisible': [('type', '=', 'str')]}"/>
  42. <field name="divider" attrs="{'invisible': [('type', '=', 'str')]}"/>
  43. <field name="suffix"/>
  44. <field name="compare_method" attrs="{'invisible': [('type', '=', 'str')]}"/>
  45. <field name="default_css_style"/>
  46. <field name="css_style"/>
  47. </tree>
  48. </field>
  49. </group>
  50. <group col="2" string="Legend (for expression)">
  51. <group>
  52. <label colspan="2" string="Expressions are of the form &lt;field&gt;&lt;mode&gt;[accounts][domain]"/>
  53. <label colspan="2" string="Possible values for 'field' can be:"/>
  54. <group>
  55. <label colspan="2" string="* bal for balance (debit - credit)"/>
  56. <label colspan="2" string="* crd for credit"/>
  57. <label colspan="2" string="* deb for debit"/>
  58. </group>
  59. <label colspan="2" string="Possible values for 'mode' are:"/>
  60. <group>
  61. <label colspan="2" string="* nothing or p: variation over the period"/>
  62. <label colspan="2" string="* i: at the beginning of the period"/>
  63. <label colspan="2" string="* e: at the end of the period"/>
  64. </group>
  65. <label colspan="2" string="'accounts' is a comma-separated list of account codes, possibly containing %% wildcards"/>
  66. <label colspan="2" string="'domain' is an optional filter on move lines (eg to filter on analytic accounts or journal)"/>
  67. </group>
  68. <group>
  69. <label colspan="2" string="Examples"/>
  70. <group>
  71. <label colspan="2" string="* bal[70]: variation of the balance of account 70 over the period (it is the same as balp[70]);"/>
  72. <label colspan="2" string="* bali[70,60]: initial balance of accounts 70 and 60;"/>
  73. <label colspan="2" string="* bale[1%%]: balance of accounts starting with 1 at end of period."/>
  74. </group>
  75. </group>
  76. </group>
  77. </sheet>
  78. </form>
  79. </field>
  80. </record>
  81. <record model="ir.actions.act_window" id="mis_report_view_action">
  82. <field name="name">MIS Report Templates</field>
  83. <field name="view_id" ref="mis_report_view_tree"/>
  84. <field name="res_model">mis.report</field>
  85. <field name="view_type">form</field>
  86. <field name="view_mode">tree,form</field>
  87. </record>
  88. <menuitem id="mis_report_view_menu" parent="account.menu_account_reports" name="MIS Report Templates" action="mis_report_view_action" sequence="21"/>
  89. <record id="xls_export" model="ir.actions.report.xml">
  90. <field name="name">MIS report instance XLS report</field>
  91. <field name="model">mis.report.instance</field>
  92. <field name="type">ir.actions.report.xml</field>
  93. <field name="report_name">mis.report.instance.xls</field>
  94. <field name="report_type">xls</field>
  95. <field name="auto" eval="False"/>
  96. </record>
  97. <record model="ir.ui.view" id="mis_report_instance_result_view_form">
  98. <field name="name">mis.report.instance.result.view.form</field>
  99. <field name="model">mis.report.instance</field>
  100. <field name="priority" eval="17"/>
  101. <field name="arch" type="xml">
  102. <form string="MIS Report Result" version="7.0">
  103. <widget type="mis_report"></widget>
  104. <button icon="gtk-execute" name="%(xls_export)d" string="Export" type="action" colspan="2"/>
  105. </form>
  106. </field>
  107. </record>
  108. <record model="ir.ui.view" id="mis_report_instance_view_tree">
  109. <field name="name">mis.report.instance.view.tree</field>
  110. <field name="model">mis.report.instance</field>
  111. <field name="arch" type="xml">
  112. <tree string="MIS Report Instances">
  113. <field name="name"/>
  114. <field name="description"/>
  115. <field name="report_id"/>
  116. <field name="target_move"/>
  117. <field name="pivot_date"/>
  118. <field name="company_id"/>
  119. </tree>
  120. </field>
  121. </record>
  122. <record model="ir.ui.view" id="mis_report_instance_view_form">
  123. <field name="name">mis.report.instance.view.form</field>
  124. <field name="model">mis.report.instance</field>
  125. <field name="priority" eval="16"/>
  126. <field name="arch" type="xml">
  127. <form string="MIS Report Instance" version="7.0">
  128. <sheet>
  129. <div class="oe_title">
  130. <div class="oe_edit_only">
  131. <label for="name"/>
  132. </div>
  133. <h1>
  134. <field name="name" placeholder="Name"/>
  135. </h1>
  136. </div>
  137. <div class="oe_right oe_button_box" name="buttons">
  138. <button type="object" name="preview" string="Preview" icon="gtk-print-preview" />
  139. <button type="action" name="%(xls_export)d" string="Export" icon="gtk-execute" />
  140. <button type="action" name="%(mis_report_instance_add_to_dashboard_action)d" string="Add to dashboard" icon="gtk-add" />
  141. </div>
  142. <group col="4">
  143. <field name="report_id" colspan="4"/>
  144. <field name="description"/>
  145. <field name="landscape_pdf" />
  146. <field name="root_account"/>
  147. <field name="company_id" groups="base.group_multi_company"/>
  148. <field name="date"/>
  149. <field name="target_move"/>
  150. <field name="period_ids" colspan="4">
  151. <tree string="KPI's" editable="bottom" colors="red:valid==False">
  152. <field name="sequence" widget="handle"/>
  153. <field name="name"/>
  154. <field name="type"/>
  155. <field name="offset"/>
  156. <field name="duration"/>
  157. <field name="normalize_factor"/>
  158. <field name="date_from"/>
  159. <field name="date_to"/>
  160. <field name="period_from"/>
  161. <field name="period_to"/>
  162. <field name="valid" invisible="1"/>
  163. <field name="report_instance_id" invisible="1"/>
  164. <field name="id" invisible="1"/>
  165. <field name="comparison_column_ids" domain="[('report_instance_id', '=', report_instance_id), ('id', '!=', id)]" widget="many2many_tags"/>
  166. </tree>
  167. </field>
  168. </group>
  169. </sheet>
  170. </form>
  171. </field>
  172. </record>
  173. <record model="ir.actions.act_window" id="mis_report_instance_view_action">
  174. <field name="name">MIS Reports</field>
  175. <field name="view_id" ref="mis_report_instance_view_tree"/>
  176. <field name="res_model">mis.report.instance</field>
  177. <field name="view_type">form</field>
  178. <field name="view_mode">tree,form</field>
  179. </record>
  180. <menuitem id="mis_report_instance_view_menu" parent="account.menu_finance_reports" name="MIS Reports" action="mis_report_instance_view_action" sequence="101"/>
  181. </data>
  182. </openerp>