-
Notifications
You must be signed in to change notification settings - Fork 287
/
account_bank_statement_view.xml
177 lines (165 loc) · 10.6 KB
/
account_bank_statement_view.xml
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
177
<?xml version='1.0' encoding='utf-8'?>
<openerp>
<data>
<!-- add Valuta Date and Globalisation id to bank statement line -->
<record model="ir.ui.view" id="view_bsl_form">
<field name="name">bank.statement.imported.lines.form</field>
<field name="model">bank.statement.imported.lines</field>
<field name="arch" type="xml">
<form string="Move line from Bank." version="7.0">
<group colspan="4">
<field name="office" attrs="{'readonly':[('state','=','done')]}"/>
<field name="date" attrs="{'readonly':[('state','=','done')]}"/>
<field name="numdocument" attrs="{'readonly':[('state','=','done')]}"/>
<field name="debit" readonly="1"/>
<field name="credit" readonly="1"/>
<field name="invo_move_line" invisible="1"/>
<field name="name" attrs="{'readonly':['|',('invoice_ids','!=',False),('acc_move_line_ids','!=',False),('state','=','done')]}"/>
<field name="bank_statement_id" invisible="1"/>
<field name="move_id" readonly="1"/>
<field name="partnercounterpart_id" attrs="{'readonly':['|',('invo_move_line','!=',False),('state','=','done')]}"/>
<field name="counterpart_id" attrs="{'readonly':['|',('invo_move_line','!=',False),('state','=','done')]}" domain="[('type','in',['receivable','payable','other'])]"/>
<button type="object" string="Change account" name="change_account" icon="gtk-go-forward" attrs="{'readonly':['|',('invo_move_line','!=',False),('state','=','done')]}" states="draft"/>
<!--
<field name="balance"/>
-->
</group>
<newline/>
<separator string="Temporal Move Line"/>
<newline/>
<field name="aml_ids" readonly="1" nolabel="1"/>
<newline/>
<separator string="Invoices to be reconciled"/>
<newline/>
<notebook>
<page string="Invoices">
<field name="invoice_ids" attrs="{'readonly':[('state','=','done')]}" on_change="invoice_or_move_line(invoice_ids,acc_move_line_ids)" nolabel="1" domain="[('residual','>',0.000001),('account_id','=',counterpart_id)]"/>
</page>
<page string="Account Move Line">
<field name="acc_move_line_ids" nolabel="1" attrs="{'readonly':[('state','=','done')]}" on_change="invoice_or_move_line(invoice_ids,acc_move_line_ids)" domain="[(credit > 0 and 'credit' or 'debit','=',0.0000 ),('reconcile_id','=',False),('account_id','=',counterpart_id)]"/>
</page>
</notebook>
<newline/>
<group colspan="4">
<!--
<button type="object" string="Set Invoice" name="button_setinvoice" states="draft" icon="STOCK_FILE"/>
-->
<button type="object" string="Validate" name="button_setinvoice" states="draft" icon="gtk-go-forward"/>
<button type="object" string="Cancel" states="done" name="button_cancel" icon="STOCK_DIALOG_WARNING"/>
<field name="state"/>
</group>
</form>
</field>
</record>
<record model="ir.ui.view" id="view_bsl_tree">
<field name="name">bank.statement.imported.lines.tree</field>
<field name="model">bank.statement.imported.lines</field>
<field name="arch" type="xml">
<tree string="Statement Bank" colors="red:state == 'draft';blue:state == 'done'">
<field name="office"/>
<field name="date"/>
<field name="numdocument"/>
<field name="debit" sum="Total Debit"/>
<field name="credit" sum="Total Credit"/>
<field name="name"/>
<field name="invoice_ids"/>
<!--
<field name="balance"/>
-->
<field name="bank_statement_id" invisible="1"/>
<field name="partnercounterpart_id"/>
<field name="counterpart_id" domain="[('type','in',['receivable','payable','other'])]"/>
<!--
<button type="object" string="Set Invoice" name="button_setinvoice" states="draft" icon="STOCK_FILE"/>
-->
<button type="object" string="Validate" name="button_setinvoice" states="draft" icon="gtk-go-forward"/>
<button type="object" string="Cancel" states="done" name="button_cancel" icon="STOCK_DIALOG_WARNING"/>
<field name="state"/>
</tree>
</field>
</record>
<record id="view_bank_statement_lines_search" model="ir.ui.view">
<field name="name">view.bank.statement.line.search</field>
<field name="model">bank.statement.imported.lines</field>
<field name="arch" type="xml">
<search string="Bank Statements Lines">
<filter string="Partner" icon="terp-stock_symbol-selection" domain="[]" context="{'group_by':'partnercounterpart_id'}"/>
<separator orientation="vertical"/>
<filter string="Account" icon="terp-mrp" domain="[]" context="{'group_by':'counterpart_id'}"/>
<separator orientation="vertical"/>
<filter string="Office" icon="call-start" domain="[]" context="{'group_by':'office'}"/>
<separator orientation="vertical"/>
<filter string="Date" icon="terp-accessories-archiver" domain="[]" context="{'group_by':'date'}"/>
<field name="partnercounterpart_id" string="Partner"/>
<field name="counterpart_id" string="Account"/>
<field name="office" string="Office"/>
<field name="numdocument" string="N Document"/>
<field name="name" string="Name"/>
</search>
</field>
</record>
<record id="view_bank_statement_form_add_fields" model="ir.ui.view">
<field name="name">view.bank.statement.form.add.fields</field>
<field name="model">account.bank.statement</field>
<field name="inherit_id" ref="account.view_bank_statement_form"/>
<field name="arch" type="xml">
<data>
<xpath expr="//page[@name='statement_line_ids']" position="before">
<page string="Bank Imported Lines" name="imported_lines">
<group colspan="2">
<button name="read_file" string="Import From Attachment" type="object" colspan="2" icon="gtk-ok" help="Import from First attached document with xls name, and structure documented."/>
<newline/>
<button name="create_aml_tmp" string="Create Account Move From File" type="object" colspan="2" icon="gtk-jump-to" attrs="{'invisible':['|',('from_to_file','=','()'),('from_to_file','=','')]}" help="Create Temporary Account Move with lines exactly as bank Statement FIrst Iteration."/>
<newline/>
<button name="delete_lines_file" string="Delete Imported From Attachment" type="object" colspan="2" icon="gtk-cancel" attrs="{'invisible':['|',('from_to_file','=','()'),('from_to_file','=','')]}" help="Delete all lines Imported"/>
<newline/>
<button name="set_date_period" string="Set date From File" type="object" colspan="2" icon="gtk-execute" attrs="{'invisible':['|',('from_to_file','=','()'),('from_to_file','=','')]}" help="Set date from file, with this button we will read the file and set date and period to be right with the file information"/>
</group>
<group colspan="2">
<field name="fname" readonly="True"/>
<newline/>
<field name="from_to_file" readonly="True"/>
<newline/>
<field name="move" readonly="True"/>
</group>
<newline/>
<field name="bs_line_ids" nolabel="1" colspan="6">
</field>
</page>
</xpath>
</data>
</field>
</record>
<record id="view_bank_statement_tree_add_fields" model="ir.ui.view">
<field name="name">view.bank.statement.tree.add.fields</field>
<field name="model">account.bank.statement</field>
<field name="inherit_id" ref="account.view_bank_statement_tree"/>
<field name="arch" type="xml">
<data>
<xpath expr="//field[@name='balance_end_real']" position="after">
<field name="lines_toreview"/>
</xpath>
</data>
</field>
</record>
<record id="view_bank_statement_search_add_fields" model="ir.ui.view">
<field name="name">view.bank.statement.search.add.fields</field>
<field name="model">account.bank.statement</field>
<field name="inherit_id" ref="account.view_bank_statement_search"/>
<field name="arch" type="xml">
<data>
<xpath expr="//filter[@string='Confirmed']" position="after">
<filter string="To Review" name="to_verify" domain="[('lines_toreview','>',0),('fname','!=','')]" icon="STOCK_INFO"/>
</xpath>
</data>
</field>
</record>
<record id="bank_statement_imported_lines_action" model="ir.actions.act_window">
<field name="name">bank.statement.imported.lines.action</field>
<field name="res_model">bank.statement.imported.lines</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form,search</field>
</record>
<menuitem name="Bank Statements Lines" action="bank_statement_imported_lines_action" id="menu_bank_imported_statement_line" parent="account.menu_finance_bank_and_cash" sequence="8"/>
</data>
</openerp>