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.

141 lines
6.0 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
  11. name="company_id"
  12. options="{'no_create': True}"
  13. groups="base.group_multi_company"
  14. />
  15. </group>
  16. <div
  17. attrs="{'invisible': [('not_only_one_unaffected_earnings_account', '=', True)]}"
  18. >
  19. <group name="filters">
  20. <group name="date_range">
  21. <field name="date_range_id" />
  22. <field name="date_from" />
  23. <field name="date_to" />
  24. <field name="fy_start_date" invisible="1" />
  25. </group>
  26. <group name="other_filters">
  27. <field name="target_move" widget="radio" />
  28. <field name="hide_account_at_0" />
  29. <field name="show_partner_details" />
  30. <field
  31. name="hierarchy_on"
  32. widget="radio"
  33. attrs="{'invisible':[('show_partner_details','=',True)]}"
  34. />
  35. <field
  36. name="limit_hierarchy_level"
  37. attrs="{'invisible':['|', ('hierarchy_on','in',['none', 'computed']),('show_partner_details','=',True)]}"
  38. />
  39. <field
  40. name="show_hierarchy_level"
  41. attrs="{'invisible':[('limit_hierarchy_level','=', False)]}"
  42. />
  43. <field
  44. name="hide_parent_hierarchy_level"
  45. attrs="{'invisible':[('limit_hierarchy_level','=', False)]}"
  46. />
  47. <field name="foreign_currency" />
  48. </group>
  49. </group>
  50. <group
  51. name="partner_filter"
  52. attrs="{'invisible':[('show_partner_details','!=',True)]}"
  53. col="1"
  54. >
  55. <label for="partner_ids" />
  56. <field
  57. name="partner_ids"
  58. nolabel="1"
  59. widget="many2many_tags"
  60. options="{'no_create': True}"
  61. />
  62. </group>
  63. <label for="journal_ids" />
  64. <field
  65. name="journal_ids"
  66. widget="many2many_tags"
  67. nolabel="1"
  68. options="{'no_create': True}"
  69. />
  70. <group attrs="{'invisible':[('show_partner_details','!=',True)]}" />
  71. <div />
  72. <group name="account_filter" col="4">
  73. <label for="account_ids" colspan="4" />
  74. <field name="receivable_accounts_only" />
  75. <field name="payable_accounts_only" />
  76. <field
  77. name="account_ids"
  78. nolabel="1"
  79. widget="many2many_tags"
  80. options="{'no_create': True}"
  81. colspan="4"
  82. />
  83. </group>
  84. </div>
  85. <div
  86. attrs="{'invisible': [('not_only_one_unaffected_earnings_account', '=', False)]}"
  87. >
  88. <field
  89. name="not_only_one_unaffected_earnings_account"
  90. invisible="1"
  91. />
  92. <group />
  93. <h4
  94. >Trial Balance can be computed only if selected company have only one unaffected earnings account.</h4>
  95. <group />
  96. </div>
  97. <footer>
  98. <div
  99. attrs="{'invisible': [('not_only_one_unaffected_earnings_account', '=', True)]}"
  100. >
  101. <button
  102. name="button_export_html"
  103. string="View"
  104. type="object"
  105. default_focus="1"
  106. class="oe_highlight"
  107. />
  108. or
  109. <button
  110. name="button_export_pdf"
  111. string="Export PDF"
  112. type="object"
  113. />
  114. or
  115. <button
  116. name="button_export_xlsx"
  117. string="Export XLSX"
  118. type="object"
  119. />
  120. or
  121. <button string="Cancel" class="oe_link" special="cancel" />
  122. </div>
  123. <div
  124. attrs="{'invisible': [('not_only_one_unaffected_earnings_account', '=', False)]}"
  125. >
  126. <button string="Cancel" class="oe_link" special="cancel" />
  127. </div>
  128. </footer>
  129. </form>
  130. </field>
  131. </record>
  132. <act_window
  133. id="action_trial_balance_wizard"
  134. name="Trial Balance"
  135. res_model="trial.balance.report.wizard"
  136. view_type="form"
  137. view_mode="form"
  138. view_id="trial_balance_wizard"
  139. target="new"
  140. />
  141. </odoo>