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.

180 lines
10 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. </group>
  24. <group string="Sub KPI's">
  25. <field name="subkpi_ids" nolabel="1" colspan="2">
  26. <tree string="Sub KPI's" editable="bottom">
  27. <field name="sequence" widget="handle"/>
  28. <field name="description"/>
  29. <field name="name"/>
  30. </tree>
  31. </field>
  32. </group>
  33. <group string="Queries">
  34. <field name="query_ids" nolabel="1" colspan="2">
  35. <tree string="Queries" editable="bottom">
  36. <field name="name"/>
  37. <field name="model_id"/>
  38. <field name="field_ids" domain="[('model_id', '=', model_id)]" widget="many2many_tags"/>
  39. <field name="field_names"/>
  40. <field name="aggregate"/>
  41. <field name="date_field" domain="[('model_id', '=', model_id), ('ttype', 'in', ('date', 'datetime'))]"/>
  42. <field name="domain"/>
  43. </tree>
  44. </field>
  45. </group>
  46. <group string="KPI's">
  47. <field name="kpi_ids" nolabel="1" colspan="2">
  48. <tree string="KPI's">
  49. <field name="sequence" widget="handle"/>
  50. <field name="description"/>
  51. <field name="name"/>
  52. <field name="multi"/>
  53. <field name="expression"/>
  54. <field name="type"/>
  55. <field name="dp" attrs="{'invisible': [('type', '=', 'str')]}"/>
  56. <field name="divider" attrs="{'invisible': [('type', '=', 'str')]}"/>
  57. <field name="prefix"/>
  58. <field name="suffix"/>
  59. <field name="compare_method" attrs="{'invisible': [('type', '=', 'str')]}"/>
  60. </tree>
  61. </field>
  62. </group>
  63. <group col="2" string="Legend (for kpi expressions)">
  64. <group>
  65. <label colspan="2" string="Expressions are of the form &lt;field&gt;&lt;mode&gt;[accounts][domain]"/>
  66. <label colspan="2" string="Possible values for 'field' can be:"/>
  67. <group>
  68. <label colspan="2" string="* bal for balance (debit - credit)"/>
  69. <label colspan="2" string="* crd for credit"/>
  70. <label colspan="2" string="* deb for debit"/>
  71. </group>
  72. <label colspan="2" string="Possible values for 'mode' are:"/>
  73. <group>
  74. <label colspan="2" string="* nothing or p: variation over the period"/>
  75. <label colspan="2" string="* i: at the beginning of the period"/>
  76. <label colspan="2" string="* e: at the end of the period"/>
  77. </group>
  78. <label colspan="2" string="'accounts' is a comma-separated list of account codes, possibly containing %% wildcards"/>
  79. <label colspan="2" string="'domain' is an optional filter on move lines (eg to filter on analytic accounts or journal)"/>
  80. </group>
  81. <group>
  82. <label colspan="2" string="Examples"/>
  83. <group>
  84. <label colspan="2" string="* bal[70]: variation of the balance of account 70 over the period (it is the same as balp[70]);"/>
  85. <label colspan="2" string="* bali[70,60]: initial balance of accounts 70 and 60;"/>
  86. <label colspan="2" string="* bale[1%%]: balance of accounts starting with 1 at end of period."/>
  87. </group>
  88. </group>
  89. </group>
  90. </sheet>
  91. </form>
  92. </field>
  93. </record>
  94. <record id="mis_report_view_kpi_form" model="ir.ui.view">
  95. <field name="name">mis.report.view.kpi.form</field>
  96. <field name="model">mis.report.kpi</field>
  97. <field name="arch" type="xml">
  98. <form string="MIS Report KPI" version="7.0">
  99. <group col="4">
  100. <field name="description"/>
  101. <field name="name"/>
  102. <field name="type"/>
  103. <field name="dp"
  104. attrs="{'invisible': [('type', '=', 'str')]}"/>
  105. <field name="divider"
  106. attrs="{'invisible': [('type', '=', 'str')]}"/>
  107. <field name="compare_method"
  108. attrs="{'invisible': [('type', '=', 'str')]}"/>
  109. <field name="prefix"/>
  110. <field name="suffix"/>
  111. <field name="style"/>
  112. <field name="style_expression"/>
  113. <!--<field name="sequence" />-->
  114. </group>
  115. <group string="Expression">
  116. <field name="multi"/>
  117. <field name="expression_ids" colspan="4" nolabel="1"
  118. delete="0" create="0"
  119. attrs="{'invisible': [('multi', '=', False)]}">
  120. <tree editable="bottom">
  121. <field name="subkpi_id"/>
  122. <field name="name"/>
  123. </tree>
  124. </field>
  125. <field name="expression" colspan="4" nolabel="1"
  126. attrs="{'invisible': [('multi', '=', True)],
  127. 'readonly': [('multi', '=', True)]}"/>
  128. </group>
  129. <group col="4" string="Auto expand">
  130. <field name="auto_expand_accounts"/>
  131. <field name="auto_expand_accounts_style"
  132. attrs="{'invisible': [('auto_expand_accounts', '!=', True)]}"/>
  133. </group>
  134. <group col="2" string="Legend (for kpi expressions)">
  135. <group>
  136. <label colspan="2" string="Expressions are of the form &lt;field&gt;&lt;mode&gt;[accounts][domain]"/>
  137. <label colspan="2" string="Possible values for 'field' can be:"/>
  138. <group>
  139. <label colspan="2" string="* bal for balance (debit - credit)"/>
  140. <label colspan="2" string="* crd for credit"/>
  141. <label colspan="2" string="* deb for debit"/>
  142. </group>
  143. <label colspan="2" string="Possible values for 'mode' are:"/>
  144. <group>
  145. <label colspan="2" string="* nothing or p: variation over the period"/>
  146. <label colspan="2" string="* i: at the beginning of the period"/>
  147. <label colspan="2" string="* e: at the end of the period"/>
  148. </group>
  149. <label colspan="2" string="'accounts' is a comma-separated list of account codes, possibly containing %% wildcards"/>
  150. <label colspan="2" string="'domain' is an optional filter on move lines (eg to filter on analytic accounts or journal)"/>
  151. </group>
  152. <group>
  153. <label colspan="2" string="Examples"/>
  154. <group>
  155. <label colspan="2" string="* bal[70]: variation of the balance of account 70 over the period (it is the same as balp[70]);"/>
  156. <label colspan="2" string="* bali[70,60]: initial balance of accounts 70 and 60;"/>
  157. <label colspan="2" string="* bale[1%%]: balance of accounts starting with 1 at end of period."/>
  158. </group>
  159. </group>
  160. </group>
  161. </form>
  162. </field>
  163. </record>
  164. <record model="ir.actions.act_window" id="mis_report_view_action">
  165. <field name="name">MIS Report Templates</field>
  166. <field name="view_id" ref="mis_report_view_tree"/>
  167. <field name="res_model">mis.report</field>
  168. <field name="view_type">form</field>
  169. <field name="view_mode">tree,form</field>
  170. </record>
  171. <menuitem id="mis_report_view_menu" parent="account.menu_account_reports" name="MIS Report Templates" action="mis_report_view_action" sequence="21"/>
  172. </data>
  173. </openerp>