1
1
<?xml version="1.0" encoding="utf-8"?>
5
<record id="view_bank_statement_form" model="ir.ui.view">
6
<field name="name">account.bank.statement.form</field>
7
<field name="model">account.bank.statement</field>
8
<field name="inherit_id" ref="account.view_bank_statement_form"/>
5
<!-- Account Move Line : add statement_treasury_id -->
6
<record id="view_move_line_tree" model="ir.ui.view">
7
<field name="name">account.move.line.tree</field>
8
<field name="model">account.move.line</field>
9
<field name="type">tree</field>
10
<field name="inherit_id" ref="account.view_move_line_tree"/>
11
<field name="arch" type="xml">
12
<field name="ref" position="after">
13
<field name="statement_id"/>
17
<record id="view_account_move_line_filter" model="ir.ui.view">
18
<field name="model">account.move.line</field>
19
<field name="type">search</field>
20
<field name="inherit_id" ref="account.view_account_move_line_filter"/>
21
<field name="arch" type="xml">
22
<field name="period_id" context="{'period_id':self}" position="after">
23
<field name="statement_id"/>
28
<record id="statement_importer_view_form" model="ir.ui.view">
29
<field name="name">account.statement.profil.view</field>
30
<field name="model">account.statement.profil</field>
9
31
<field name="type">form</field>
10
32
<field name="arch" type="xml">
11
<field name="period_id" position="replace"/>
33
<form string="Import statement">
34
<separator string="" colspan="4"/>
35
<field name="name" select="1" />
36
<field name="partner_id" select="1"/>
37
<field name="journal_id" select="1"/>
38
<field name="commission_account_id" />
39
<field name="commission_analytic_id" />
40
<field name="receivable_account_id" />
41
<field name="force_partner_on_bank"/>
42
<field name="balance_check"/>
43
<field name="bank_statement_prefix"/>
14
<record id="view_banking_bank_statement_tree" model="ir.ui.view">
15
<field name="name">account.bank.statement.tree.banking</field>
16
<field name="inherit_id" ref="account.view_bank_statement_tree" />
17
<field name="model">account.bank.statement</field>
48
<record id="statement_importer_view_tree" model="ir.ui.view">
49
<field name="name">account.statement.profil.view</field>
50
<field name="model">account.statement.profil</field>
18
51
<field name="type">tree</field>
19
52
<field name="arch" type="xml">
20
<field name="period_id" position="replace"/>
24
<record id="view_banking_bank_statement_form_add_period" model="ir.ui.view">
25
<field name="name">account.bank.statement.form.add_period</field>
26
<field name="inherit_id" ref="account.view_bank_statement_form" />
27
<field name="model">account.bank.statement</field>
28
<field name="type">form</field>
29
<field name="arch" type="xml">
30
<xpath expr="/form/notebook/page[@string='Transaction']/field/tree/field[@name='ref']" position="after">
31
<field name="period_id"/>
35
<record id="view_banking_bank_statement_add_period_2" model="ir.ui.view">
36
<field name="name">account.bank.statement.form.add_period2</field>
37
<field name="inherit_id" ref="account.view_bank_statement_form" />
38
<field name="model">account.bank.statement</field>
39
<field name="type">form</field>
40
<field name="arch" type="xml">
42
<xpath expr="/form/notebook/page[@string='Transaction']/field/form/field[@name='ref']" position="after">
43
<field name="period_id"/>
53
<tree string="Import statement">
55
<field name="partner_id" />
56
<field name="journal_id" />
57
<field name="commission_account_id" />
58
<field name="commission_analytic_id" />
59
<field name="receivable_account_id" />
60
<field name="force_partner_on_bank"/>
61
<field name="balance_check"/>
65
<record id="action_treasury_statement_profil_tree" model="ir.actions.act_window">
66
<field name="name">Bank Statements Profile</field>
67
<field name="res_model">account.statement.profil</field>
68
<field name="view_type">form</field>
69
<field name="view_mode">tree,form</field>
72
<menuitem string="Bank Statements Profile" action="action_treasury_statement_profil_tree" id="menu_treasury_statement_profil_tree" parent="account.menu_configuration_misc" sequence="30"/>
49
74
<record model="ir.ui.view" id="id_in_statement_line">
50
75
<field name="name">account.bank.statement.line.inherit</field>
51
76
<field name="model">account.bank.statement</field>
87
<record id="view_treasury_statement_search" model="ir.ui.view">
88
<field name="name">account.bank.statement.search</field>
89
<field name="model">account.bank.statement</field>
90
<field name="inherit_id" ref="account.view_bank_statement_search"/>
91
<field name="type">search</field>
92
<field name="arch" type="xml">
93
<xpath expr="/search/group/field[@name='name']" position="before">
94
<field name="profile_id"/>
95
<field name="credit_partner_id"/>
96
<separator orientation="vertical"/>
98
<xpath expr="/search/group/field[@name='period_id']" position="replace">
100
<xpath expr="/search/group/filter[@string='Period']" position="replace">
101
<filter string="Financial Partner" context="{'group_by': 'credit_partner_id'}" icon="terp-partner"/>
106
<record id="view_treasury_statement_tree" model="ir.ui.view">
107
<field name="name">account.bank.statement.tree</field>
108
<field name="model">account.bank.statement</field>
109
<field name="inherit_id" ref="account.view_bank_statement_tree"/>
110
<field name="type">tree</field>
111
<field name="arch" type="xml">
112
<xpath expr="/tree/field[@name='name']" position="after">
113
<field name="profile_id"/>
115
<xpath expr="/tree/field[@name='period_id']" position="replace">
116
<field name="credit_partner_id"/>
122
<record id="view_treasury_statement_form" model="ir.ui.view">
123
<field name="name">account.bank.statement.form</field>
124
<field name="model">account.bank.statement</field>
125
<field name="inherit_id" ref="account.view_bank_statement_form"/>
126
<field name="type">form</field>
127
<field name="arch" type="xml">
128
<!-- Remove name and date from group tag -->
129
<xpath expr="/form/group/field[@name='name']" position="replace">
131
<xpath expr="/form/group/field[@name='date']" position="replace">
133
<!-- Add a new group before the first one with name, profil and date -->
134
<xpath expr="/form/group[@col='7']" position="before">
135
<group col="6" colspan="4">
136
<field name="name" select="1"/>
137
<field name="profile_id" select="1" required="1" on_change="onchange_imp_config_id(profile_id)" widget="selection"/>
138
<field name="date" select="1" on_change="onchange_date(date, company_id)"/>
140
<separator string="Details" colspan="4"/>
142
<!-- Make balance visible or not depending on profil -->
143
<xpath expr="/form/group/field[@name='balance_start']" position="replace">
145
<xpath expr="/form/group/field[@name='balance_end_real']" position="replace">
147
<xpath expr="/form/group[@col='7']" position="after">
148
<separator string="Balance Check" colspan="4" attrs="{'invisible':[('balance_check','=',False)]}"/>
149
<group col="6" colspan="4" attrs="{'invisible':[('balance_check','=',False)]}">
150
<field name="balance_start" />
151
<field name="balance_end_real" />
154
<xpath expr="/form/group/field[@name='balance_end']" position="replace">
155
<field name="balance_end" attrs="{'invisible':[('balance_check','=',False)]}"/>
158
<xpath expr="/form/group/field[@name='journal_id']" position="attributes">
159
<attribute name="widget"></attribute>
161
<xpath expr="/form/group/field[@name='period_id']" position="replace">
162
<field name="credit_partner_id"/>
163
<field name="account_id" invisible="1"/>
164
<field name="balance_check" invisible="1"/>
166
<xpath expr="/form/notebook/page/field/tree/field[@name='sequence']" position="after">
169
<xpath expr="/form/notebook/page/field/tree/field[@name='partner_id']" position="replace">
170
<field name="partner_id" on_change="onchange_partner_id(partner_id,parent.profile_id)"/>
172
<xpath expr="/form/notebook/page/field/form/field[@name='date']" position="before">
175
<!-- Adapt onchange signature -->
176
<xpath expr="/form/notebook/page/field/tree/field[@name='partner_id']" position="replace">
177
<field name="partner_id" on_change="onchange_partner_id(partner_id,parent.profile_id)"/>
179
<xpath expr="/form/notebook/page/field/form/field[@name='partner_id']" position="replace">
180
<field name="partner_id" on_change="onchange_partner_id(partner_id,parent.profile_id)"/>
182
<xpath expr="/form/notebook/page/field/form/field[@name='type']" position="replace">
183
<field name="type" on_change="onchange_type(partner_id, type, parent.profile_id)"/>
185
<xpath expr="/form/notebook/page/field/tree/field[@name='type']" position="replace">
186
<field name="type" on_change="onchange_type(partner_id, type, parent.profile_id)"/>
193
<act_window id="act_bank_statement_from_profile"
194
name="Open Statements"
195
res_model="account.bank.statement"
196
src_model="account.statement.profil"
197
domain="[('profile_id','=',active_id),]"