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