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.

81 lines
4.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 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" domain="['|',('company_id','=',company_id), ('company_id','=',False)]"/>
  16. <field name="date_from"/>
  17. <field name="date_to"/>
  18. <field name="fy_start_date" invisible="1"/>
  19. </group>
  20. <group name="other_filters">
  21. <field name="target_move" widget="radio"/>
  22. <field name="centralize"/>
  23. <field name="hide_account_at_0"/>
  24. <field name="foreign_currency"/>
  25. <field name="show_analytic_tags"/>
  26. </group>
  27. </group>
  28. <notebook>
  29. <page string="Filter accounts">
  30. <group col="4">
  31. <field name="receivable_accounts_only"/>
  32. <field name="payable_accounts_only"/>
  33. </group>
  34. <field name="account_ids" nolabel="1" widget="many2many_tags" options="{'no_create': True}"/>
  35. </page>
  36. <page string="Filter partners">
  37. <field name="partner_ids" nolabel="1" widget="many2many_tags" options="{'no_create': True}"/>
  38. </page>
  39. <page string="Filter cost centers" groups="analytic.group_analytic_accounting">
  40. <field name="cost_center_ids" nolabel="1" options="{'no_create': True}" groups="analytic.group_analytic_accounting"/>
  41. </page>
  42. <page string="Filter analytic tags">
  43. <field name="analytic_tag_ids" widget="many2many_tags" nolabel="1" options="{'no_create': True}"/>
  44. </page>
  45. </notebook>
  46. </div>
  47. <div attrs="{'invisible': [('not_only_one_unaffected_earnings_account', '=', False)]}">
  48. <field name="not_only_one_unaffected_earnings_account" invisible="1"/>
  49. <group/>
  50. <h4>General Ledger can be computed only if selected company have only one unaffected earnings account.</h4>
  51. <group/>
  52. </div>
  53. <footer>
  54. <div attrs="{'invisible': [('not_only_one_unaffected_earnings_account', '=', True)]}">
  55. <button name="button_export_html" string="View"
  56. type="object" default_focus="1" class="oe_highlight"/>
  57. or
  58. <button name="button_export_pdf" string="Export PDF" type="object"/>
  59. or
  60. <button name="button_export_xlsx" string="Export XLSX" type="object"/>
  61. or
  62. <button string="Cancel" class="oe_link" special="cancel" />
  63. </div>
  64. <div attrs="{'invisible': [('not_only_one_unaffected_earnings_account', '=', False)]}">
  65. <button string="Cancel" class="oe_link" special="cancel" />
  66. </div>
  67. </footer>
  68. </form>
  69. </field>
  70. </record>
  71. <act_window id="action_general_ledger_wizard"
  72. name="General Ledger"
  73. res_model="general.ledger.report.wizard"
  74. view_type="form"
  75. view_mode="form"
  76. view_id="general_ledger_wizard"
  77. target="new" />
  78. </odoo>