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.

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