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.

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