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.

86 lines
4.6 KiB

8 years ago
8 years ago
8 years ago
8 years ago
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <!-- TRIAL BALANCE -->
  4. <record id="trial_balance_wizard" model="ir.ui.view">
  5. <field name="name">Trial Balance</field>
  6. <field name="model">trial.balance.report.wizard</field>
  7. <field name="arch" type="xml">
  8. <form>
  9. <group name="main_info">
  10. <field name="company_id" options="{'no_create': True}" groups="base.group_multi_company"/>
  11. </group>
  12. <div attrs="{'invisible': [('not_only_one_unaffected_earnings_account', '=', True)]}">
  13. <group name="filters">
  14. <group name="date_range">
  15. <field name="date_range_id"/>
  16. <field name="date_from"/>
  17. <field name="date_to"/>
  18. <field name="fy_start_date" invisible="1"/>
  19. <field name="journal_ids" widget="many2many_tags" options="{'no_create': True}"/>
  20. </group>
  21. <group name="other_filters">
  22. <field name="target_move" widget="radio"/>
  23. <field name="hide_account_at_0"/>
  24. <field name="show_partner_details"/>
  25. <field name="hierarchy_on" widget="radio" attrs="{'invisible':[('show_partner_details','=',True)]}"/>
  26. <field name="limit_hierarchy_level" attrs="{'invisible':['|', ('hierarchy_on','=','none'),('show_partner_details','=',True)]}"/>
  27. <field name="show_hierarchy_level" attrs="{'invisible':[('limit_hierarchy_level','=', False)]}"/>
  28. <field name="hide_parent_hierarchy_level" attrs="{'invisible':[('limit_hierarchy_level','=', False)]}"/>
  29. <field name="foreign_currency"/>
  30. </group>
  31. </group>
  32. <group name="partner_filter" attrs="{'invisible':[('show_partner_details','!=',True)]}" col="1">
  33. <label for="partner_ids"/>
  34. <field name="partner_ids"
  35. nolabel="1"
  36. widget="many2many_tags"
  37. options="{'no_create': True}"/>
  38. </group>
  39. <group attrs="{'invisible':[('show_partner_details','!=',True)]}"/>
  40. <div/>
  41. <group name="account_filter" col="4">
  42. <label for="account_ids" colspan="4"/>
  43. <field name="receivable_accounts_only"/>
  44. <field name="payable_accounts_only"/>
  45. <field name="account_ids"
  46. nolabel="1"
  47. widget="many2many_tags"
  48. options="{'no_create': True}"
  49. colspan="4"/>
  50. </group>
  51. </div>
  52. <div attrs="{'invisible': [('not_only_one_unaffected_earnings_account', '=', False)]}">
  53. <field name="not_only_one_unaffected_earnings_account" invisible="1"/>
  54. <group/>
  55. <h4>Trial Balance can be computed only if selected company have only one unaffected earnings account.</h4>
  56. <group/>
  57. </div>
  58. <footer>
  59. <div attrs="{'invisible': [('not_only_one_unaffected_earnings_account', '=', True)]}">
  60. <button name="button_export_html" string="View"
  61. type="object" default_focus="1" class="oe_highlight"/>
  62. or
  63. <button name="button_export_pdf" string="Export PDF" type="object" default_focus="1" class="oe_highlight"/>
  64. or
  65. <button name="button_export_xlsx" string="Export XLSX" type="object"/>
  66. or
  67. <button string="Cancel" class="oe_link" special="cancel" />
  68. </div>
  69. <div attrs="{'invisible': [('not_only_one_unaffected_earnings_account', '=', False)]}">
  70. <button string="Cancel" class="oe_link" special="cancel" />
  71. </div>
  72. </footer>
  73. </form>
  74. </field>
  75. </record>
  76. <act_window id="action_trial_balance_wizard"
  77. name="Trial Balance"
  78. res_model="trial.balance.report.wizard"
  79. view_type="form"
  80. view_mode="form"
  81. view_id="trial_balance_wizard"
  82. target="new" />
  83. </odoo>