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.

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