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.

125 lines
5.7 KiB

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