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.

174 lines
7.6 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. <field
  98. name="domain"
  99. widget="domain"
  100. options="{'model': 'account.move.line', 'in_dialog': True}"
  101. />
  102. </page>
  103. </notebook>
  104. </div>
  105. <div
  106. attrs="{'invisible': [('not_only_one_unaffected_earnings_account', '=', False)]}"
  107. >
  108. <field
  109. name="not_only_one_unaffected_earnings_account"
  110. invisible="1"
  111. />
  112. <group />
  113. <h4
  114. >General Ledger can be computed only if selected company have only one unaffected earnings account.</h4>
  115. <group />
  116. </div>
  117. <footer>
  118. <div
  119. attrs="{'invisible': [('not_only_one_unaffected_earnings_account', '=', True)]}"
  120. >
  121. <button
  122. name="button_export_html"
  123. string="View"
  124. type="object"
  125. default_focus="1"
  126. class="oe_highlight"
  127. />
  128. or
  129. <button
  130. name="button_export_pdf"
  131. string="Export PDF"
  132. type="object"
  133. />
  134. or
  135. <button
  136. name="button_export_xlsx"
  137. string="Export XLSX"
  138. type="object"
  139. />
  140. or
  141. <button string="Cancel" class="oe_link" special="cancel" />
  142. </div>
  143. <div
  144. attrs="{'invisible': [('not_only_one_unaffected_earnings_account', '=', False)]}"
  145. >
  146. <button string="Cancel" class="oe_link" special="cancel" />
  147. </div>
  148. </footer>
  149. </form>
  150. </field>
  151. </record>
  152. <act_window
  153. id="action_general_ledger_wizard"
  154. name="General Ledger"
  155. res_model="general.ledger.report.wizard"
  156. view_mode="form"
  157. view_id="general_ledger_wizard"
  158. target="new"
  159. />
  160. <!--Add to res.partner action-->
  161. <act_window
  162. id="act_action_general_ledger_wizard_partner_relation"
  163. name="General Ledger"
  164. res_model="general.ledger.report.wizard"
  165. binding_model="res.partner"
  166. view_mode="form"
  167. context="{
  168. 'default_receivable_accounts_only':1,
  169. 'default_payable_accounts_only':1,
  170. }"
  171. groups="account.group_account_manager"
  172. target="new"
  173. />
  174. </odoo>