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.

157 lines
7.3 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record id="account_financial_report_view" model="ir.ui.view">
  5. <field name="name">Account Financial Report (Template)</field>
  6. <field name="model">afr</field>
  7. <field name="type">form</field>
  8. <field name="arch" type="xml">
  9. <form string="Account Financial Report (Templates)">
  10. <group colspan="4">
  11. <field name="name" colspan="4"/>
  12. </group>
  13. <group colspan="4">
  14. <group colspan="2">
  15. <separator string="Company Info" colspan="4"/>
  16. <field name="company_id" on_change='onchange_company_id(company_id)' colspan="4"/>
  17. <field name="currency_id"
  18. domain="[('company_id','=',company_id)]"
  19. attrs="{'readonly':[('analytic_ledger','=',True)]}"
  20. colspan="4"/>
  21. </group>
  22. <group colspan="2">
  23. <separator string="Report Info" colspan="4"/>
  24. <field
  25. name="inf_type"
  26. colspan="4"
  27. on_change='onchange_inf_type(inf_type)'
  28. />
  29. <field name="columns" on_change='onchange_columns(columns,fiscalyear_id,period_ids)' colspan="4"/>
  30. <field name="analytic_ledger" colspan="4"
  31. attrs="{'readonly':['|',('columns','!=','four'),('inf_type','!=','BS')],}"
  32. on_change='onchange_analytic_ledger(company_id,analytic_ledger)'
  33. />
  34. </group>
  35. </group>
  36. <group colspan='4'>
  37. <group colspan="2">
  38. <separator string="Accounts Info" colspan="4"/>
  39. <field name="display_account" required="True" colspan="4"/>
  40. <field name="display_account_level" required="True" colspan="4"/>
  41. </group>
  42. <group colspan="2">
  43. <separator string="FiscalYear Info" colspan="4"/>
  44. <field name="fiscalyear_id" on_change='onchange_columns(columns,fiscalyear_id,period_ids)' domain="[('company_id','=',company_id)]"/>
  45. <newline/>
  46. </group>
  47. </group>
  48. <group colspan='4'>
  49. <group colspan="1">
  50. <separator string="Accounts to Include" colspan="4"/>
  51. <field name="account_ids" nolabel="1" colspan="4" domain="[('company_id','=',company_id)]">
  52. <tree>
  53. <field name='code'/>
  54. <field name='name'/>
  55. <field name='type'/>
  56. <field name='level'/>
  57. </tree>
  58. </field>
  59. </group>
  60. <group colspan="1">
  61. <separator string="Periods to Include" colspan="4"/>
  62. <field name="period_ids"
  63. colspan="4" nolabel="1"
  64. domain="[('fiscalyear_id','=',fiscalyear_id),('special','=',False),('company_id','=',company_id)]"
  65. attrs="{'readonly':[('columns','in',('qtr','thirteen'))],}"
  66. >
  67. <tree>
  68. <field name='code'/>
  69. <field name='name'/>
  70. <field name='state'/>
  71. </tree>
  72. </field>
  73. </group>
  74. </group>
  75. <group colspan='4'>
  76. <separator string="Account's Sign Conventions" colspan="4"/>
  77. <label string="Please check the [ Account's Sign on Reports ] Section in the Company"/>
  78. </group>
  79. <group colspan='4' col='4'>
  80. <group colspan="2">
  81. <separator string="Total" colspan="4"/>
  82. <field name="tot_check" colspan="4"/>
  83. <field name="lab_str" colspan="4" attrs="{'required':[('tot_check','=',True)], 'readonly':[('tot_check','=',False)],}" />
  84. </group>
  85. <group colspan="2">
  86. <separator string="" colspan="4"/>
  87. <!--
  88. <button
  89. name="print_report"
  90. string="Print"
  91. type="object"
  92. icon='gtk-print'/>
  93. <button
  94. type='special'
  95. special='cancel'
  96. string='_Cancel'
  97. icon='gtk-cancel'
  98. />
  99. -->
  100. </group>
  101. </group>
  102. </form>
  103. </field>
  104. </record>
  105. <record id="account_financial_report_tree" model="ir.ui.view">
  106. <field name="name">Account Financial Report (Template)</field>
  107. <field name="model">afr</field>
  108. <field name="type">tree</field>
  109. <field name="arch" type="xml">
  110. <tree string="Account Financial Report (Templates)">
  111. <field name="name"/>
  112. <field name="company_id"/>
  113. <field name="currency_id"/>
  114. <field name="inf_type"/>
  115. <field name="columns"/>
  116. <field name="display_account"/>
  117. <field name="display_account_level" required="True" colspan="4"/>
  118. <field name="fiscalyear_id"/>
  119. <field name="tot_check" colspan="4"/>
  120. <!--
  121. <button name="print_report" string="Print" type="object"/>
  122. -->
  123. </tree>
  124. </field>
  125. </record>
  126. <record model="ir.actions.act_window" id="account_financial_report_action">
  127. <field name="name">Account Financial Report</field>
  128. <field name="res_model">afr</field>
  129. <field name="type">ir.actions.act_window</field>
  130. <field name="view_type">form</field>
  131. <field name="view_mode">tree,form</field>
  132. <field name="help">Create your own Customized Account Financial Reports, in here, you will be able to create Templates for generating Two types of Reports: Balance Sheets and Income Statements, incluiding Analytic Ledgers. Besides, you can select within a set of choices to get better detailed report, be it that you ask it by one or several periods, by months (12 Months + YTD), or by quarters (4QRT's + YTD). Even you can get your reports in currencies other than the one set on your company.</field>
  133. </record>
  134. <menuitem
  135. id="account_financial_report_menu"
  136. name="Account Financial Report (Templates)"
  137. parent="account.final_accounting_reports"
  138. sequence="100"
  139. groups="account_financial_report.group_afreport"
  140. action="account_financial_report_action"/>
  141. </data>
  142. </openerp>