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.8 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <openerp>
  3. <data>
  4. ##############################################################################
  5. #
  6. # account_financial_report_webkit module for OpenERP, Webkit based extended report financial report
  7. # Copyright (C) 2012 SYLEAM Info Services ([http://www.syleam.fr/])
  8. # Sebastien LANGE [sebastien.lange@syleam.fr]
  9. #
  10. # This file is a part of account_financial_report_webkit
  11. #
  12. # account_financial_report_webkit is free software: you can redistribute it and/or modify
  13. # it under the terms of the GNU Affero General Public License as published by
  14. # the Free Software Foundation, either version 3 of the License, or
  15. # (at your option) any later version.
  16. #
  17. # account_financial_report_webkit is distributed in the hope that it will be useful,
  18. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20. # GNU Affero General Public License for more details.
  21. #
  22. # You should have received a copy of the GNU Affero General Public License
  23. # along with this program. If not, see [http://www.gnu.org/licenses/].
  24. #
  25. ##############################################################################
  26. <record id="account_report_print_journal_view_webkit" model="ir.ui.view">
  27. <field name="name">Journals</field>
  28. <field name="model">print.journal.webkit</field>
  29. <field name="type">form</field>
  30. <field name="inherit_id" ref="account.account_common_report_view"/>
  31. <field name="arch" type="xml">
  32. <data>
  33. <xpath expr="/form/label[@string='']" position="replace">
  34. <separator string="Journals" colspan="4"/>
  35. <label nolabel="1" colspan="4" string="This report allows you to print or generate a pdf of your print journal with details of all your account journals"/>
  36. </xpath>
  37. <xpath expr="//field[@name='target_move']" position="after">
  38. <field name="amount_currency"/>
  39. <newline/>
  40. <field name="filter" on_change="onchange_filter(filter, fiscalyear_id)" colspan="4" invisible="1"/>
  41. <separator string="Periods" colspan="4"/>
  42. <field name="period_from" domain="[('fiscalyear_id', '=', fiscalyear_id)]" required="1" colspan="4"/>
  43. <field name="period_to" domain="[('fiscalyear_id', '=', fiscalyear_id)]" required="1" colspan="4"/>
  44. <separator string="Journals" colspan="4"/>
  45. <field name="journal_ids" colspan="4" nolabel="1"/>
  46. </xpath>
  47. <xpath expr="//page[@name='filters']" position="replace">
  48. </xpath>
  49. <xpath expr="//page[@name='journal_ids']" position="replace">
  50. </xpath>
  51. </data>
  52. </field>
  53. </record>
  54. <record id="account_report_print_journal_view_inherit" model="ir.ui.view">
  55. <field name="name">Journals</field>
  56. <field name="model">print.journal.webkit</field>
  57. <field name="type">form</field>
  58. <field name="inherit_id" ref="account.account_report_print_journal"/>
  59. <field name="arch" type="xml">
  60. <field name="fiscalyear_id" position="replace">
  61. <field name="fiscalyear_id" on_change="onchange_fiscalyear(fiscalyear_id)"/>
  62. </field>
  63. </field>
  64. </record>
  65. <record id="action_account_print_journal_menu_webkit" model="ir.actions.act_window">
  66. <field name="name">Journals</field>
  67. <field name="type">ir.actions.act_window</field>
  68. <field name="res_model">print.journal.webkit</field>
  69. <field name="view_type">form</field>
  70. <field name="view_mode">form</field>
  71. <field name="view_id" ref="account_report_print_journal_view_webkit"/>
  72. <field name="target">new</field>
  73. </record>
  74. <record model="ir.values" id="action_account_print_journal_values_webkit">
  75. <field name="model_id" ref="account.model_account_account"/>
  76. <field name="name">Journals</field>
  77. <field name="key2">client_print_multi</field>
  78. <field name="value"
  79. eval="'ir.actions.act_window,' +str(ref('action_account_print_journal_menu_webkit'))"/>
  80. <field name="key">action</field>
  81. <field name="model">account.journal.period</field>
  82. </record>
  83. </data>
  84. </openerp>