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.

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