1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
|
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<!-- FORM -->
<record id="form_account_bankReconcilliation" model="ir.ui.view">
<field name="name">Form Bank Reconcilliation</field>
<field name="model">account.bank.statement</field>
<field name="sequence" eval="1"/>
<field name="arch" type="xml">
<form string="Bank Reconcilliation" version="7.0">
<header>
<button name="button_confirm" type="workflow" string="Confirm" states="draft" groups="ar_account.group_account_bankReconcilliationValidator"/>
<button name="button_approve" type="workflow" string="Approve" states="confirmed" groups="ar_account.group_account_bankReconcilliationApprove"/>
<button name="button_done" type="workflow" string="Done" states="approved" groups="ar_account.group_account_bankReconcilliationProcess"/>
<button name="button_cancel" type="workflow" string="Cancel" states="draft,confirmed,approved" groups="ar_account.group_account_bankReconcilliationCancel"/>
<button name="button_action_cancel" type="object" string="Cancel" states="done" groups="ar_account.group_account_bankReconcilliationCancel"/>
<button name="button_action_set_to_draft" type="object" string="Set To Draft" states="cancelled" groups="ar_account.group_account_bankReconcilliationRestart"/>
<field name="state" widget="statusbar"/>
</header>
<sheet>
<h1>
<label string="Bank Reconcilliation"/>
</h1>
<group name="group_1" colspan="4" col="2">
<group name="group_1_1" colspan="1" col="2">
<field name="name" string="# Bank Reconcilliation"/>
<field name="id" string="Database ID"/>
<separator string="Journal" colspan="2"/>
<field name="journal_id" domain="[('type', '=', 'bank')]" on_change="onchange_journal_id(journal_id, date, date_to)" widget="selection"/>
<field name="company_id"/>
<field name="currency"/>
<separator string="Reconcilliation Period" colspan="2"/>
<field name="date" on_change="onchange_date(date, company_id)" string="Date From"/>
<field name="date_to"/>
<field name="period_id" class="oe_inline" invisible="1"/>
</group>
<group name="group_1_1" colspan="1" col="2">
<separator string="Balance Based On Statement" colspan="2"/>
<field name="balance_start" widget="monetary" options='{"currency_field" : "currency"}'/>
<field name="balance_end_real" widget="monetary" options='{"currency_field" : "currency"}'/>
<separator string="Computed Balance" colspan="2"/>
<field name="balance_start_compute" widget="monetary" options='{"currency_field" : "currency"}'/>
<field name="balance_end" widget="monetary" options='{"currency_field" : "currency"}'/>
</group>
</group>
<notebook colspan="4">
<page string="Journal Entries">
<field name="move_line_ids" string="Journal Entries" widget="many2many">
<tree string="Journal Item">
<field name="name"/>
<field name="move_id"/>
<field name="date"/>
<field name="journal_id"/>
<field name="period_id"/>
<field name="partner_id"/>
<field name="debit"/>
<field name="credit"/>
<field name="currency_id"/>
<field name="amount_currency"/>
<field name="statement_id" invisible="1"/>
</tree>
</field>
</page>
<page string="Note">
<page string="note" colspan="4" nolabel="1"/>
</page>
</notebook>
</sheet>
<div class="oe_chatter">
<field name="message_follower_ids" widget="mail_followers"/>
<field name="message_ids" widget="mail_thread"/>
</div>
</form>
</field>
</record>
<!-- TREE -->
<record id="tree_account_bankReconcilliation" model="ir.ui.view">
<field name="name">Tree Bank Reconcilliation</field>
<field name="model">account.bank.statement</field>
<field name="sequence" eval="1"/>
<field name="arch" type="xml">
<tree colors="red:(balance_end_real!=balance_end or balance_start!=balance_start_compute)" string="Bank Reconcilliation">
<field name="name"/>
<field name="date"/>
<field name="date_to"/>
<field name="period_id" invisible="1"/>
<field name="journal_id"/>
<field name="balance_start"/>
<field name="balance_end_real"/>
<field name="balance_start_compute"/>
<field name="balance_end" invisible="0"/>
<field name="state"/>
</tree>
</field>
</record>
<!-- SEARCH -->
<record id="search_account_bankReconcilliation" model="ir.ui.view">
<field name="name">Search Bank Reconcilliation</field>
<field name="model">account.bank.statement</field>
<field name="arch" type="xml">
<search string="Search Bank Statements">
<field name="name" string="Bank Statement"/>
<field name="date"/>
<field name="journal_id" domain="[('type', '=', 'bank')]" />
<group expand="0" string="Group By...">
<filter string="Journal" context="{'group_by': 'journal_id'}" icon="terp-folder-orange"/>
<filter string="Status" context="{'group_by': 'state'}" icon="terp-stock_effects-object-colorize"/>
</group>
</search>
</field>
</record>
<record id="form_account_formBankStatement" model="ir.ui.view">
<field name="name">Form Bank Statement</field>
<field name="model">account.bank.statement</field>
<field name="inherit_id" ref="account.view_bank_statement_form2"/>
<field name="arch" type="xml">
<data>
<page string="Journal Entries" attrs="{'invisible': [('state','!=','confirm')]}" position="replace">
<page string="Journal Entries">
<field name="move_line_ids" string="Journal Entries"/>
</page>
</page>
</data>
</field>
</record>
<record id="form_account_formBankStatement1" model="ir.ui.view">
<field name="name">Form Bank Statement 1</field>
<field name="model">account.bank.statement</field>
<field name="inherit_id" ref="account.view_bank_statement_form"/>
<field name="arch" type="xml">
<data>
<field name="balance_end_real" widget="monetary" options='{"currency_field" : "currency"}' position="after">
<field name="balance_end"/>
</field>
<notebook position="inside">
<page string="Journal Entries">
<field name="move_line_ids" string="Journal Entries" widget="many2many"/>
</page>
</notebook>
</data>
</field>
</record>
<record id="form_account_formBankStatement1" model="ir.ui.view">
<field name="name">Form Bank Statement 2</field>
<field name="model">account.bank.statement</field>
<field name="inherit_id" ref="account_voucher.view_bank_statement_form_invoice"/>
<field name="arch" type="xml">
<data>
<field name="balance_end_real" widget="monetary" options='{"currency_field" : "currency"}' position="after">
<field name="balance_end"/>
</field>
<page string="Transactions" name="statement_line_ids" position="before">
<page string="Journal Entries">
<field name="move_line_ids" string="Journal Entries" widget="many2many"/>
</page>
</page>
<page string="Transactions" name="statement_line_ids" position="attributes">
<attribute name="invisible">1</attribute>
</page>
<button name="%(account_voucher.action_view_account_statement_from_invoice_lines)d"
string="Import Invoices" type="action"
attrs="{'invisible':[('state','=','confirm')]}" position="replace"/>
</data>
</field>
</record>
</data>
</openerp>
|