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.

157 lines
6.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
  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
  111. one unaffected earnings account.
  112. </h4>
  113. <group />
  114. </div>
  115. <footer>
  116. <div
  117. attrs="{'invisible': [('not_only_one_unaffected_earnings_account', '=', True)]}"
  118. >
  119. <button
  120. name="button_export_html"
  121. string="View"
  122. type="object"
  123. default_focus="1"
  124. class="oe_highlight"
  125. />
  126. or
  127. <button
  128. name="button_export_pdf"
  129. string="Export PDF"
  130. type="object"
  131. />
  132. or
  133. <button
  134. name="button_export_xlsx"
  135. string="Export XLSX"
  136. type="object"
  137. />
  138. or
  139. <button string="Cancel" class="oe_link" special="cancel" />
  140. </div>
  141. <div
  142. attrs="{'invisible': [('not_only_one_unaffected_earnings_account', '=', False)]}"
  143. >
  144. <button string="Cancel" class="oe_link" special="cancel" />
  145. </div>
  146. </footer>
  147. </form>
  148. </field>
  149. </record>
  150. <record id="action_trial_balance_wizard" model="ir.actions.act_window">
  151. <field name="name">Trial Balance</field>
  152. <field name="res_model">trial.balance.report.wizard</field>
  153. <field name="view_mode">form</field>
  154. <field name="view_id" ref="trial_balance_wizard" />
  155. <field name="target">new</field>
  156. </record>
  157. </odoo>