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