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.

124 lines
6.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" col="6">
  11. <field name="name" nolabel="0" colspan="6"/>
  12. </group>
  13. <group colspan="4">
  14. <label string="Notes" colspan="4"/>
  15. <field name="narration" colspan="4" nolabel="1"/>
  16. </group>
  17. <group colspan="4">
  18. <group string="Company Info" >
  19. <field name="company_id" on_change='onchange_company_id(company_id)' />
  20. <field name="currency_id"
  21. domain="[('company_id','=',company_id)]"
  22. attrs="{'readonly':[('analytic_ledger','=',True)]}" />
  23. </group>
  24. <group string="Report Info" >
  25. <field
  26. name="inf_type"
  27. on_change='onchange_inf_type(inf_type)' />
  28. <field name="columns" on_change='onchange_columns(columns,fiscalyear_id,period_ids)' />
  29. <field name="analytic_ledger"
  30. attrs="{'readonly':['|',('columns','!=','four'),('inf_type','!=','BS')],}"
  31. on_change='onchange_analytic_ledger(company_id,analytic_ledger)' />
  32. <field name="journal_ledger"
  33. attrs="{'readonly':['|',('columns','!=','four'),('inf_type','!=','BS')],}" />
  34. </group>
  35. </group>
  36. <group colspan="4">
  37. <group string="Accounts Info" >
  38. <field name="display_account" required="True" />
  39. <field name="display_account_level" required="True" />
  40. <field name="target_move"/>
  41. </group>
  42. <group string="FiscalYear Info" >
  43. <field name="fiscalyear_id" on_change='onchange_columns(columns,fiscalyear_id,period_ids)'
  44. domain="[('company_id','=',company_id)]"/>
  45. </group>
  46. </group>
  47. <group colspan="4">
  48. <group string="Accounts to Include">
  49. <field name="account_ids" nolabel="1" domain="[('company_id','=',company_id)]">
  50. <tree>
  51. <field name='code'/>
  52. <field name='name'/>
  53. <field name='type'/>
  54. <field name='level'/>
  55. </tree>
  56. </field>
  57. </group>
  58. <group string="Periods to Include">
  59. <field name="period_ids"
  60. nolabel="1"
  61. domain="[('fiscalyear_id','=',fiscalyear_id),('special','=',False),('company_id','=',company_id)]"
  62. attrs="{'readonly':[('columns','in',('qtr','thirteen'))],}" >
  63. <tree>
  64. <field name='code'/>
  65. <field name='name'/>
  66. <field name='state'/>
  67. </tree>
  68. </field>
  69. </group>
  70. </group>
  71. <group string="Account's Sign Conventions" colspan="4">
  72. <label string="Please check the [ Account's Sign on Reports ] Section in the Company"/>
  73. </group>
  74. <group colspan="4">
  75. <group string="Total">
  76. <field name="tot_check"/>
  77. <field name="lab_str" attrs="{'required':[('tot_check','=',True)], 'readonly':[('tot_check','=',False)],}" />
  78. </group>
  79. <group string=" " >
  80. </group>
  81. </group>
  82. </form>
  83. </field>
  84. </record>
  85. <record id="account_financial_report_tree" model="ir.ui.view">
  86. <field name="name">Account Financial Report (Template)</field>
  87. <field name="model">afr</field>
  88. <field name="type">tree</field>
  89. <field name="arch" type="xml">
  90. <tree string="Account Financial Report (Templates)">
  91. <field name="name"/>
  92. <field name="company_id"/>
  93. <field name="currency_id"/>
  94. <field name="inf_type"/>
  95. <field name="columns"/>
  96. <field name="display_account"/>
  97. <field name="display_account_level" required="True" />
  98. <field name="fiscalyear_id"/>
  99. <field name="tot_check" />
  100. </tree>
  101. </field>
  102. </record>
  103. <record model="ir.actions.act_window" id="account_financial_report_action">
  104. <field name="name">Account Financial Report</field>
  105. <field name="res_model">afr</field>
  106. <field name="type">ir.actions.act_window</field>
  107. <field name="view_type">form</field>
  108. <field name="view_mode">tree,form</field>
  109. <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>
  110. </record>
  111. <menuitem
  112. id="account_financial_report_menu"
  113. name="Account Financial Report (Templates)"
  114. parent="account.final_accounting_reports"
  115. sequence="100"
  116. groups="account_financial_report.group_afreport"
  117. action="account_financial_report_action"/>
  118. </data>
  119. </openerp>