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.

93 lines
4.9 KiB

  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" domain="['|',('company_id','=',company_id), ('company_id','=',False)]"/>
  16. <field name="date_from"/>
  17. <field name="date_to"/>
  18. <field name="fy_start_date" invisible="1"/>
  19. </group>
  20. <group name="other_filters">
  21. <field name="target_move" widget="radio"/>
  22. <field name="hide_account_at_0"/>
  23. <field name="show_partner_details"/>
  24. <field name="hierarchy_on" widget="radio" attrs="{'invisible':[('show_partner_details','=',True)]}"/>
  25. <field name="limit_hierarchy_level" attrs="{'invisible':['|', ('hierarchy_on','=','none'),('show_partner_details','=',True)]}"/>
  26. <field name="show_hierarchy_level" attrs="{'invisible':[('limit_hierarchy_level','=', False)]}"/>
  27. <field name="foreign_currency"/>
  28. </group>
  29. </group>
  30. <group name="partner_filter" attrs="{'invisible':[('show_partner_details','!=',True)]}" col="1">
  31. <label for="partner_ids"/>
  32. <field name="partner_ids"
  33. nolabel="1"
  34. domain="['|',('company_id','=',company_id), ('company_id','=',False)]"
  35. widget="many2many_tags"
  36. options="{'no_create': True}"/>
  37. </group>
  38. <label for="journal_ids"/>
  39. <field name="journal_ids"
  40. widget="many2many_tags"
  41. domain="[('company_id','=',company_id)]"
  42. nolabel="1"
  43. options="{'no_create': True}"
  44. />
  45. <group attrs="{'invisible':[('show_partner_details','!=',True)]}"/>
  46. <div/>
  47. <group name="account_filter" col="4">
  48. <label for="account_ids" colspan="4"/>
  49. <field name="receivable_accounts_only"/>
  50. <field name="payable_accounts_only"/>
  51. <field name="account_ids"
  52. nolabel="1"
  53. widget="many2many_tags"
  54. domain="[('company_id','=',company_id)]"
  55. options="{'no_create': True}"
  56. colspan="4"/>
  57. </group>
  58. </div>
  59. <div attrs="{'invisible': [('not_only_one_unaffected_earnings_account', '=', False)]}">
  60. <field name="not_only_one_unaffected_earnings_account" invisible="1"/>
  61. <group/>
  62. <h4>Trial Balance can be computed only if selected company have only one unaffected earnings account.</h4>
  63. <group/>
  64. </div>
  65. <footer>
  66. <div attrs="{'invisible': [('not_only_one_unaffected_earnings_account', '=', True)]}">
  67. <button name="button_export_html" string="View"
  68. type="object" default_focus="1" class="oe_highlight"/>
  69. or
  70. <button name="button_export_pdf" string="Export PDF" type="object"/>
  71. or
  72. <button name="button_export_xlsx" string="Export XLSX" type="object"/>
  73. or
  74. <button string="Cancel" class="oe_link" special="cancel" />
  75. </div>
  76. <div attrs="{'invisible': [('not_only_one_unaffected_earnings_account', '=', False)]}">
  77. <button string="Cancel" class="oe_link" special="cancel" />
  78. </div>
  79. </footer>
  80. </form>
  81. </field>
  82. </record>
  83. <act_window id="action_trial_balance_wizard"
  84. name="Trial Balance"
  85. res_model="trial.balance.report.wizard"
  86. view_type="form"
  87. view_mode="form"
  88. view_id="trial_balance_wizard"
  89. target="new" />
  90. </odoo>