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.

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