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.

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