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.

103 lines
5.2 KiB

8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
  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 name="company_id" options="{'no_create': True}" groups="base.group_multi_company"/>
  11. </group>
  12. <div attrs="{'invisible': [('not_only_one_unaffected_earnings_account', '=', True)]}">
  13. <group name="filters">
  14. <group name="date_range">
  15. <field name="date_range_id"/>
  16. <field name="date_from"/>
  17. <field name="date_to"/>
  18. <field name="fy_start_date" invisible="1"/>
  19. <field name="journal_ids" widget="many2many_tags" options="{'no_create': True}"/>
  20. </group>
  21. <group name="other_filters">
  22. <field name="target_move" widget="radio"/>
  23. <field name="centralize"/>
  24. <field name="hide_account_at_0"/>
  25. <field name="foreign_currency"/>
  26. <field name="show_analytic_tags"/>
  27. <field name="show_partial_reconciliations"/>
  28. </group>
  29. </group>
  30. <notebook>
  31. <page string="Filter accounts">
  32. <group col="4">
  33. <field name="receivable_accounts_only"/>
  34. <field name="payable_accounts_only"/>
  35. </group>
  36. <field name="account_ids"
  37. nolabel="1"
  38. widget="many2many_tags"
  39. options="{'no_create': True}"/>
  40. </page>
  41. <page string="Filter partners">
  42. <field name="partner_ids" nolabel="1"
  43. widget="many2many_tags"
  44. options="{'no_create': True}"/>
  45. </page>
  46. <page string="Filter cost centers" groups="analytic.group_analytic_accounting">
  47. <field name="cost_center_ids" nolabel="1"
  48. options="{'no_create': True}"
  49. groups="analytic.group_analytic_accounting"/>
  50. </page>
  51. <page string="Filter analytic tags">
  52. <field name="analytic_tag_ids" widget="many2many_tags" nolabel="1" options="{'no_create': True}"/>
  53. </page>
  54. </notebook>
  55. </div>
  56. <div attrs="{'invisible': [('not_only_one_unaffected_earnings_account', '=', False)]}">
  57. <field name="not_only_one_unaffected_earnings_account" invisible="1"/>
  58. <group/>
  59. <h4>General Ledger can be computed only if selected company have only one unaffected earnings account.</h4>
  60. <group/>
  61. </div>
  62. <footer>
  63. <div attrs="{'invisible': [('not_only_one_unaffected_earnings_account', '=', True)]}">
  64. <button name="button_export_html" string="View"
  65. type="object" default_focus="1" class="oe_highlight"/>
  66. or
  67. <button name="button_export_pdf" string="Export PDF" type="object" default_focus="1" class="oe_highlight"/>
  68. or
  69. <button name="button_export_xlsx" string="Export XLSX" type="object"/>
  70. or
  71. <button string="Cancel" class="oe_link" special="cancel" />
  72. </div>
  73. <div attrs="{'invisible': [('not_only_one_unaffected_earnings_account', '=', False)]}">
  74. <button string="Cancel" class="oe_link" special="cancel" />
  75. </div>
  76. </footer>
  77. </form>
  78. </field>
  79. </record>
  80. <act_window id="action_general_ledger_wizard"
  81. name="General Ledger"
  82. res_model="general.ledger.report.wizard"
  83. view_type="form"
  84. view_mode="form"
  85. view_id="general_ledger_wizard"
  86. target="new" />
  87. <!--Add to res.partner action-->
  88. <act_window id="act_action_general_ledger_wizard_partner_relation"
  89. name="General Ledger"
  90. res_model="general.ledger.report.wizard"
  91. src_model="res.partner"
  92. view_mode="form"
  93. context="{
  94. 'default_receivable_accounts_only':1,
  95. 'default_payable_accounts_only':1,
  96. }"
  97. groups="account.group_account_manager"
  98. key2="client_action_multi"
  99. target="new" />
  100. </odoo>