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.

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