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.

87 lines
4.7 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="inherit_id" ref="account.account_common_report_view"/>
  30. <field name="arch" type="xml">
  31. <data>
  32. <xpath expr="/form/label[@string='']" position="replace">
  33. <separator string="Journals" colspan="4"/>
  34. <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"/>
  35. </xpath>
  36. <xpath expr="//field[@name='target_move']" position="after">
  37. <field name="amount_currency"/>
  38. <newline/>
  39. <field name="filter" on_change="onchange_filter(filter, fiscalyear_id)" colspan="4" invisible="1"/>
  40. <separator string="Periods" colspan="4"/>
  41. <field name="period_from" domain="[('fiscalyear_id', '=', fiscalyear_id)]" required="1" colspan="4"/>
  42. <field name="period_to" domain="[('fiscalyear_id', '=', fiscalyear_id)]" required="1" colspan="4"/>
  43. <separator string="Journals" colspan="4"/>
  44. <field name="journal_ids" colspan="4" nolabel="1"/>
  45. </xpath>
  46. <xpath expr="//page[@name='filters']" position="replace">
  47. </xpath>
  48. <xpath expr="//page[@name='journal_ids']" position="replace">
  49. </xpath>
  50. </data>
  51. </field>
  52. </record>
  53. <record id="account_report_print_journal_view_inherit" model="ir.ui.view">
  54. <field name="name">Journals</field>
  55. <field name="model">print.journal.webkit</field>
  56. <field name="inherit_id" ref="account.account_report_print_journal"/>
  57. <field name="arch" type="xml">
  58. <field name="fiscalyear_id" position="replace">
  59. <field name="fiscalyear_id" on_change="onchange_fiscalyear(fiscalyear_id)"/>
  60. </field>
  61. </field>
  62. </record>
  63. <record id="action_account_print_journal_menu_webkit" model="ir.actions.act_window">
  64. <field name="name">Journals</field>
  65. <field name="type">ir.actions.act_window</field>
  66. <field name="res_model">print.journal.webkit</field>
  67. <field name="view_type">form</field>
  68. <field name="view_mode">form</field>
  69. <field name="view_id" ref="account_report_print_journal_view_webkit"/>
  70. <field name="target">new</field>
  71. </record>
  72. <record model="ir.values" id="action_account_print_journal_values_webkit">
  73. <field name="model_id" ref="account.model_account_account"/>
  74. <field name="name">Journals</field>
  75. <field name="key2">client_print_multi</field>
  76. <field name="value"
  77. eval="'ir.actions.act_window,' +str(ref('action_account_print_journal_menu_webkit'))"/>
  78. <field name="key">action</field>
  79. <field name="model">account.journal.period</field>
  80. </record>
  81. </data>
  82. </openerp>