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.

177 lines
7.8 KiB

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <odoo>
  3. <!-- GENERAL LEDGER -->
  4. <record id="general_ledger_wizard" model="ir.ui.view">
  5. <field name="name">General Ledger</field>
  6. <field name="model">general.ledger.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="centralize" />
  29. <field name="show_partner_details" />
  30. <field name="hide_account_at_0" />
  31. <field name="foreign_currency" />
  32. <field name="show_analytic_tags" />
  33. <field name="show_cost_center" />
  34. </group>
  35. </group>
  36. <notebook>
  37. <page string="Filter accounts">
  38. <group name="account_filter" col="4">
  39. <label for="account_ids" colspan="4" />
  40. <field name="receivable_accounts_only" />
  41. <field name="payable_accounts_only" />
  42. <label for="account_code_from" string="From Code" />
  43. <div>
  44. <div class="o_row">
  45. <field
  46. name="account_code_from"
  47. class="oe_inline"
  48. options="{'no_create': True}"
  49. />
  50. <span class="oe_inline">
  51. To
  52. </span>
  53. <field
  54. name="account_code_to"
  55. class="oe_inline"
  56. options="{'no_create': True}"
  57. />
  58. </div>
  59. </div>
  60. <field
  61. name="account_ids"
  62. nolabel="1"
  63. widget="many2many_tags"
  64. options="{'no_create': True}"
  65. colspan="4"
  66. />
  67. </group>
  68. </page>
  69. <page string="Filter partners">
  70. <field
  71. name="partner_ids"
  72. nolabel="1"
  73. widget="many2many_tags"
  74. options="{'no_create': True}"
  75. />
  76. </page>
  77. <page
  78. string="Filter analytic accounts"
  79. groups="analytic.group_analytic_accounting"
  80. >
  81. <field
  82. name="cost_center_ids"
  83. nolabel="1"
  84. widget="many2many_tags"
  85. options="{'no_create': True}"
  86. />
  87. </page>
  88. <page string="Filter analytic tags">
  89. <field
  90. name="analytic_tag_ids"
  91. widget="many2many_tags"
  92. nolabel="1"
  93. options="{'no_create': True}"
  94. />
  95. </page>
  96. <page string="Additional Filtering">
  97. <style
  98. >.o_domain_show_selection_button {display: none}</style>
  99. <field
  100. name="domain"
  101. widget="domain"
  102. options="{'model': 'account.move.line', 'in_dialog': True}"
  103. context="{'skip_search_count': 1}"
  104. />
  105. </page>
  106. </notebook>
  107. </div>
  108. <div
  109. attrs="{'invisible': [('not_only_one_unaffected_earnings_account', '=', False)]}"
  110. >
  111. <field
  112. name="not_only_one_unaffected_earnings_account"
  113. invisible="1"
  114. />
  115. <group />
  116. <h4
  117. >General Ledger can be computed only if selected company have only one unaffected earnings account.</h4>
  118. <group />
  119. </div>
  120. <footer>
  121. <div
  122. attrs="{'invisible': [('not_only_one_unaffected_earnings_account', '=', True)]}"
  123. >
  124. <button
  125. name="button_export_html"
  126. string="View"
  127. type="object"
  128. default_focus="1"
  129. class="oe_highlight"
  130. />
  131. or
  132. <button
  133. name="button_export_pdf"
  134. string="Export PDF"
  135. type="object"
  136. />
  137. or
  138. <button
  139. name="button_export_xlsx"
  140. string="Export XLSX"
  141. type="object"
  142. />
  143. or
  144. <button string="Cancel" class="oe_link" special="cancel" />
  145. </div>
  146. <div
  147. attrs="{'invisible': [('not_only_one_unaffected_earnings_account', '=', False)]}"
  148. >
  149. <button string="Cancel" class="oe_link" special="cancel" />
  150. </div>
  151. </footer>
  152. </form>
  153. </field>
  154. </record>
  155. <act_window
  156. id="action_general_ledger_wizard"
  157. name="General Ledger"
  158. res_model="general.ledger.report.wizard"
  159. view_mode="form"
  160. view_id="general_ledger_wizard"
  161. target="new"
  162. />
  163. <!--Add to res.partner action-->
  164. <act_window
  165. id="act_action_general_ledger_wizard_partner_relation"
  166. name="General Ledger"
  167. res_model="general.ledger.report.wizard"
  168. binding_model="res.partner"
  169. view_mode="form"
  170. context="{
  171. 'default_receivable_accounts_only':1,
  172. 'default_payable_accounts_only':1,
  173. }"
  174. groups="account.group_account_manager"
  175. target="new"
  176. />
  177. </odoo>