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.

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