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.

156 lines
6.8 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. <label for="account_code_from" string="From Code" />
  77. <div>
  78. <div class="o_row">
  79. <field
  80. name="account_code_from"
  81. class="oe_inline"
  82. options="{'no_create': True}"
  83. />
  84. <span class="oe_inline">To</span>
  85. <field
  86. name="account_code_to"
  87. class="oe_inline"
  88. options="{'no_create': True}"
  89. />
  90. </div>
  91. </div>
  92. <field
  93. name="account_ids"
  94. nolabel="1"
  95. widget="many2many_tags"
  96. options="{'no_create': True}"
  97. colspan="4"
  98. />
  99. </group>
  100. </div>
  101. <div
  102. attrs="{'invisible': [('not_only_one_unaffected_earnings_account', '=', False)]}"
  103. >
  104. <field
  105. name="not_only_one_unaffected_earnings_account"
  106. invisible="1"
  107. />
  108. <group />
  109. <h4
  110. >Trial Balance can be computed only if selected company have only one unaffected earnings account.</h4>
  111. <group />
  112. </div>
  113. <footer>
  114. <div
  115. attrs="{'invisible': [('not_only_one_unaffected_earnings_account', '=', True)]}"
  116. >
  117. <button
  118. name="button_export_html"
  119. string="View"
  120. type="object"
  121. default_focus="1"
  122. class="oe_highlight"
  123. />
  124. or
  125. <button
  126. name="button_export_pdf"
  127. string="Export PDF"
  128. type="object"
  129. />
  130. or
  131. <button
  132. name="button_export_xlsx"
  133. string="Export XLSX"
  134. type="object"
  135. />
  136. or
  137. <button string="Cancel" class="oe_link" special="cancel" />
  138. </div>
  139. <div
  140. attrs="{'invisible': [('not_only_one_unaffected_earnings_account', '=', False)]}"
  141. >
  142. <button string="Cancel" class="oe_link" special="cancel" />
  143. </div>
  144. </footer>
  145. </form>
  146. </field>
  147. </record>
  148. <act_window
  149. id="action_trial_balance_wizard"
  150. name="Trial Balance"
  151. res_model="trial.balance.report.wizard"
  152. view_mode="form"
  153. view_id="trial_balance_wizard"
  154. target="new"
  155. />
  156. </odoo>