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.

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