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.

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