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.

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