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.

89 lines
4.5 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record id="account_report_general_ledger_view_webkit" model="ir.ui.view">
  5. <field name="name">General Ledger</field>
  6. <field name="model">general.ledger.webkit</field>
  7. <field name="type">form</field>
  8. <field name="inherit_id" ref="account.account_common_report_view"/>
  9. <field name="arch" type="xml">
  10. <data>
  11. <xpath expr="/form/label[@string='']" position="replace">
  12. <separator string="General Ledger" colspan="4"/>
  13. <label nolabel="1" colspan="4" string="This report allows you to print or generate a pdf of your general ledger with details of all your account journals"/>
  14. </xpath>
  15. <field name="chart_account_id" position='attributes'>
  16. <attribute name="colspan">4</attribute>
  17. </field>
  18. <form position="inside">
  19. <field name="display_account" invisible="True"/>
  20. </form>
  21. <page name="filters" position="after">
  22. <page string="Accounts Filters" name="accounts">
  23. <separator string="Print only" colspan="4"/>
  24. <field name="account_ids" colspan="4" nolabel="1">
  25. <tree>
  26. <field name="code"/>
  27. <field name="name"/>
  28. <field name="type"/>
  29. <field name="company_id"/>
  30. </tree>
  31. </field>
  32. </page>
  33. <page string="Layout Options" name="layout_options">
  34. <field name="amount_currency"/>
  35. <field name="centralize"/>
  36. </page>
  37. </page>
  38. <page name="journal_ids" position="attributes">
  39. <attribute name="invisible">True</attribute>
  40. </page>
  41. <page name="filters" position="attributes">
  42. <attribute name="string">Time Filters</attribute>
  43. </page>
  44. <field name="period_from" position="attributes">
  45. <attribute name="domain">[('fiscalyear_id', '=', fiscalyear_id), ('special', '=', False)]</attribute>
  46. </field>
  47. <field name="period_to" position="attributes">
  48. <attribute name="domain">[('fiscalyear_id', '=', fiscalyear_id), ('special', '=', False)]</attribute>
  49. </field>
  50. </data>
  51. </field>
  52. </record>
  53. <record id="account_report_general_ledger_view_inherit" model="ir.ui.view">
  54. <field name="name">General Ledger</field>
  55. <field name="model">general.ledger.webkit</field>
  56. <field name="type">form</field>
  57. <field name="inherit_id" ref="account.account_report_general_ledger_view"/>
  58. <field name="arch" type="xml">
  59. <field name="fiscalyear_id" position="replace">
  60. <field name="fiscalyear_id" on_change="onchange_fiscalyear(fiscalyear_id)"/>
  61. </field>
  62. </field>
  63. </record>
  64. <record id="action_account_general_ledger_menu_webkit" model="ir.actions.act_window">
  65. <field name="name">General Ledger</field>
  66. <field name="type">ir.actions.act_window</field>
  67. <field name="res_model">general.ledger.webkit</field>
  68. <field name="view_type">form</field>
  69. <field name="view_mode">form</field>
  70. <field name="view_id" ref="account_report_general_ledger_view_webkit"/>
  71. <field name="target">new</field>
  72. </record>
  73. <record model="ir.values" id="action_account_general_ledger_values_webkit">
  74. <field name="model_id" ref="account.model_account_account"/>
  75. <field name="object" eval="1"/>
  76. <field name="name">General Ledger</field>
  77. <field name="key2">client_print_multi</field>
  78. <field name="value"
  79. eval="'ir.actions.act_window,' +str(ref('action_account_general_ledger_menu_webkit'))"/>
  80. <field name="key">action</field>
  81. <field name="model">account.account</field>
  82. </record>
  83. </data>
  84. </openerp>