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.

119 lines
5.3 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. </group>
  44. </group>
  45. <group>
  46. <group string="Accounts Info">
  47. <field name="display_account" required="True" />
  48. <field name="display_account_level" required="True" />
  49. <field name="target_move"/>
  50. </group>
  51. <group string="FiscalYear Info">
  52. <field name="fiscalyear" on_change='onchange_columns(columns,fiscalyear,periods)' domain="[('company_id','=',company_id)]"/>
  53. <newline/>
  54. </group>
  55. </group>
  56. <group >
  57. <group string="Accounts to Include">
  58. <field name="account_list" nolabel="1" domain="[('company_id','=',company_id)]">
  59. <tree>
  60. <field name='code'/>
  61. <field name='name'/>
  62. <field name='type'/>
  63. <field name='level'/>
  64. </tree>
  65. </field>
  66. </group>
  67. <group string="Periods to Include">
  68. <field
  69. name="periods"
  70. nolabel="1"
  71. domain="[('fiscalyear_id','=',fiscalyear),('special','=',False),('company_id','=',company_id)]"
  72. attrs="{'readonly':[('columns','in',('qtr','thirteen'))],}">
  73. <tree>
  74. <field name='code'/>
  75. <field name='name'/>
  76. <field name='state'/>
  77. </tree>
  78. </field>
  79. </group>
  80. </group>
  81. <group string="Account's Sign Conventions">
  82. <label string="Please check the [ Account's Sign on Reports ] Section in the Company"/>
  83. </group>
  84. <group>
  85. <group string="Total" >
  86. <field name="tot_check" />
  87. <field name="lab_str" attrs="{'required':[('tot_check','=',True)], 'readonly':[('tot_check','=',False)],}" />
  88. </group>
  89. <group string=" " >
  90. </group>
  91. </group>
  92. </form>
  93. </field>
  94. </record>
  95. <record id="action_wizard_report" model="ir.actions.act_window">
  96. <field name="name">Account Financial Report (Multireports)</field>
  97. <field name="res_model">wizard.report</field>
  98. <field name="view_type">form</field>
  99. <field name="view_mode">form</field>
  100. <field name="view_id" ref="wizard_report_view"/>
  101. <field name="target">inline</field>
  102. </record>
  103. <menuitem
  104. id="menu_wizard_report"
  105. name="Account Financial Report (Multireports)"
  106. parent="account.final_accounting_reports"
  107. sequence="99"
  108. groups="account_financial_report.group_afreport"
  109. action="action_wizard_report"/>
  110. </data>
  111. </openerp>