1 <?xml version="1.0" encoding="UTF-8"?>
5 <record id="view_voucher_filter_customer_pay" model="ir.ui.view">
6 <field name="name">account.voucher.customer.pay.select</field>
7 <field name="model">account.voucher</field>
8 <field name="type">search</field>
9 <field name="arch" type="xml">
10 <search string="Search Vouchers">
11 <group col='8' colspan='4'>
12 <filter icon="terp-document-new" string="Draft" domain="[('state','=','draft')]" help="Draft Vouchers"/>
13 <filter icon="terp-camera_test" string="Posted" domain="[('state','=','posted')]" help="Posted Vouchers"/>
14 <separator orientation="vertical"/>
15 <filter icon="terp-gtk-jump-to-ltr" string="To Review" domain="[('state','=','posted')]" groups="base.group_extended" help="To Review"/>
16 <separator orientation="vertical"/>
18 <field name="number"/>
19 <field name="partner_id" string="Customer"/>
22 <group col='8' colspan='4'>
23 <field name="journal_id" widget="selection" context="{'journal_id': self, 'set_visible':False}" domain="[('type','in',('bank','cash'))]"/>
24 <field name="period_id" groups="base.group_extended"/>
27 <group expand="0" string="Extended Filters..." col='8' colspan='4'>
28 <field name="reference"/>
30 <field name="narration"/>
31 <field name="amount"/>
34 <group expand="0" string="Group By..." colspan="4" col="10">
35 <filter string="Customer" icon="terp-personal" domain="[]" context="{'group_by':'partner_id'}"/>
36 <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'journal_id'}"/>
37 <filter string="Period" icon="terp-go-month" domain="[]" context="{'group_by':'period_id','visible':True}"/>
38 <filter string="State" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
45 <record id="view_voucher_filter_vendor_pay" model="ir.ui.view">
46 <field name="name">account.voucher.purchase.pay.select</field>
47 <field name="model">account.voucher</field>
48 <field name="type">search</field>
49 <field name="arch" type="xml">
50 <search string="Search Vouchers">
51 <group col='8' colspan='4'>
52 <filter icon="terp-document-new" string="Draft" domain="[('state','=','draft')]" help="Draft Vouchers"/>
53 <filter icon="terp-camera_test" string="Posted" domain="[('state','=','posted')]" help="Posted Vouchers"/>
54 <separator orientation="vertical"/>
55 <filter icon="terp-gtk-jump-to-ltr" string="To Review" domain="[('state','=','posted')]" groups="base.group_extended" help="To Review"/>
56 <separator orientation="vertical"/>
58 <field name="number"/>
59 <field name="partner_id" string="Supplier"/>
62 <group col='8' colspan='4'>
63 <field name="journal_id" widget="selection" context="{'journal_id': self, 'set_visible':False}" domain="[('type','in',('bank','cash'))]"/>
64 <field name="period_id" groups="base.group_extended"/>
67 <group expand="0" string="Extended Filters..." col='8' colspan='4'>
68 <field name="reference"/>
70 <field name="narration"/>
71 <field name="amount"/>
74 <group expand="0" string="Group By..." colspan="4" col="10">
75 <filter string="Supplier" icon="terp-personal" domain="[]" context="{'group_by':'partner_id'}"/>
76 <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'journal_id'}"/>
77 <filter string="Period" icon="terp-go-month" domain="[]" context="{'group_by':'period_id','visible':True}"/>
78 <filter string="State" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
83 <record model="ir.ui.view" id="view_low_priority_payment_form">
84 <field name="name">account.voucher.payment.low.priority.form</field>
85 <field name="model">account.voucher</field>
86 <field name="type">form</field>
87 <field name="priority">1</field>
88 <field name="arch" type="xml">
89 <form string="Bill Payment">
90 <group col="6" colspan="4">
91 <field name="partner_id" required="1" on_change="onchange_partner_id(partner_id, journal_id, amount, currency_id, type, date, context)" context="{'invoice_currency':currency_id}" string="Supplier"/>
92 <field name="amount" on_change="onchange_partner_id(partner_id, journal_id, amount, currency_id, type, date, context)"/>
93 <field name="journal_id"
94 domain="[('type','in',['bank', 'cash'])]"
95 widget="selection" select="1"
96 on_change="onchange_partner_id(partner_id, journal_id, amount, currency_id, type, date, context)"
97 string="Payment Method"/>
98 <field name="date" select="1" on_change="onchange_date(partner_id, journal_id, amount, currency_id, type, date, context)"/>
99 <field name="reference" select="1" string="Payment Ref"/>
100 <field name="name" colspan="2"/>
101 <field name="account_id"
104 <field name="pre_line" invisible="1"/>
105 <field name="type" invisible="True"/>
107 <notebook colspan="4">
108 <page string="Payment Information">
109 <field name="line_dr_ids" attrs="{'invisible': [('type', '=', 'receipt')]}" default_get="{'journal_id':journal_id, 'type':type, 'partner_id':partner_id}" colspan="4" nolabel="1" height="140" on_change="onchange_line_ids(line_dr_ids, line_cr_ids, amount)">
110 <tree string="Open Supplier Journal Entries" editable="bottom">
111 <field name="move_line_id" context="{'journal_id':parent.journal_id, 'partner_id':parent.partner_id}"
112 on_change="onchange_move_line_id(move_line_id)"
113 domain="[('account_id.type','=','payable'), ('reconcile_id','=', False), ('partner_id','=',parent.partner_id)]"
115 <field name="account_id" groups="base.group_extended" domain="[('type','=','payable')]"/>
116 <field name="date_original" readonly="1"/>
117 <field name="date_due" readonly="1"/>
118 <field name="amount_original" readonly="1"/>
119 <field name="amount_unreconciled" sum="Open Balance" readonly="1"/>
120 <field name="amount" sum="Payment"/>
123 <field name="line_cr_ids" colspan="4" nolabel="1" attrs="{'invisible': [('type', '=', 'payment')]}" default_get="{'journal_id':journal_id, 'partner_id':partner_id}" on_change="onchange_line_ids(line_dr_ids, line_cr_ids, amount)">
124 <tree string="Open Customer Journal Entries" editable="bottom">
125 <field name="move_line_id"/>
126 <field name="account_id" groups="base.group_extended" domain="[('type','=','receivable')]"/>
127 <field name="date_original"/>
128 <field name="amount_original"/>
129 <field name="amount" sum="Payment"/>
132 <group col="2" colspan="3">
133 <separator string="Internal Notes" colspan="2"/>
134 <field name="narration" colspan="2" nolabel="1"/>
136 <group col="2" colspan="1">
137 <separator string="Other Information" colspan="2"/>
138 <field name="currency_id" invisible="True"/>
139 <field name="number"/>
147 <record model="ir.ui.view" id="view_vendor_payment_form">
148 <field name="name">account.voucher.payment.form</field>
149 <field name="model">account.voucher</field>
150 <field name="type">form</field>
151 <field name="arch" type="xml">
152 <form string="Bill Payment">
153 <group col="6" colspan="4">
154 <field name="partner_id" domain="[('supplier','=',True)]" required="1" on_change="onchange_partner_id(partner_id, journal_id, amount, currency_id, type, date, context)" context="{'invoice_currency':currency_id}" string="Supplier"/>
155 <field name="amount" on_change="onchange_partner_id(partner_id, journal_id, amount, currency_id, type, date, context)"/>
156 <field name="journal_id"
157 domain="[('type','in',['bank', 'cash'])]"
158 widget="selection" select="1"
159 on_change="onchange_partner_id(partner_id, journal_id, amount, currency_id, type, date, context)"
160 string="Payment Method"/>
161 <field name="date" select="1" on_change="onchange_date(partner_id, journal_id, amount, currency_id, type, date, context)"/>
162 <field name="reference" select="1" string="Payment Ref"/>
163 <field name="name" colspan="2"/>
164 <field name="company_id" select="1" widget="selection" groups="base.group_multi_company"/>
165 <field name="account_id"
168 <field name="pre_line" invisible="1"/>
169 <field name="type" invisible="True"/>
171 <notebook colspan="4">
172 <page string="Payment Information">
173 <field name="line_dr_ids" default_get="{'journal_id':journal_id, 'type':type, 'partner_id':partner_id}" colspan="4" nolabel="1" height="140">
174 <tree string="Supplier Invoices and Outstanding transactions" editable="bottom">
175 <field name="move_line_id" context="{'journal_id':parent.journal_id, 'partner_id':parent.partner_id}"
176 on_change="onchange_move_line_id(move_line_id)"
177 domain="[('account_id.type','=','payable'), ('reconcile_id','=', False), ('partner_id','=',parent.partner_id)]"
179 <field name="account_id" groups="base.group_extended" domain="[('type','=','payable')]"/>
180 <field name="date_original" readonly="1"/>
181 <field name="date_due" readonly="1"/>
182 <field name="amount_original" readonly="1"/>
183 <field name="amount_unreconciled" sum="Open Balance" readonly="1"/>
184 <field name="amount" sum="Payment"/>
187 <field name="line_cr_ids" colspan="4" nolabel="1" attrs="{'invisible': [('pre_line','=',False)]}" default_get="{'journal_id':journal_id, 'partner_id':partner_id, 'type':type}">
188 <tree string="Credits" editable="bottom">
189 <field name="move_line_id"/>
190 <field name="account_id" groups="base.group_extended" domain="[('type','=','payable')]"/>
191 <field name="date_original"/>
192 <field name="amount_original"/>
193 <field name="amount" sum="Payment"/>
196 <group col="2" colspan="3">
197 <separator string="Internal Notes" colspan="2"/>
198 <field name="narration" colspan="2" nolabel="1"/>
200 <group col="2" colspan="1">
201 <group col="2" colspan="1">
202 <separator string="Payment Options" colspan="2"/>
203 <field name="payment_option" required="1"/>
204 <field name="writeoff_amount"
205 attrs="{'invisible':[('payment_option','!=','with_writeoff')]}"/>
206 <field name="writeoff_acc_id"
207 attrs="{'invisible':[('payment_option','!=','with_writeoff')], 'required':[('payment_option','=','with_writeoff')]}"
208 domain="[('type','=','other')]"/>
209 <field name="comment"
210 attrs="{'invisible':[('payment_option','!=','with_writeoff')]}"/>
211 <field name="analytic_id"
212 attrs="{'invisible':[('payment_option','!=','with_writeoff')]}"
213 groups="analytic.group_analytic_accounting"/>
215 <separator string="Other Information" colspan="2"/>
216 <group col="4" colspan="1">
217 <field name="currency_id" invisible="True"/>
218 <field name="number"/>
222 <page string="Journal Items" groups="base.group_extended" attrs="{'invisible': [('state','!=','posted')]}">
223 <group col="6" colspan="4">
224 <field name="period_id"/>
225 <field name="audit"/>
227 <field name="move_ids" colspan="4" nolabel="1" readonly="1">
228 <tree string="Journal Items">
229 <field name="move_id"/>
232 <field name="statement_id"/>
233 <field name="partner_id"/>
234 <field name="account_id"/>
236 <field name="debit"/>
237 <field name="credit"/>
238 <field name="state"/>
239 <field name="reconcile_id"/>
240 <field name="amount_currency"/>
241 <field name="currency_id"/>
246 <group col="10" colspan="4">
247 <field name="state"/>
248 <button name="cancel_voucher" string="Cancel" states="draft,proforma" icon="gtk-cancel"/>
249 <button name="cancel_voucher" string="Unreconcile" type="object" states="posted" icon="terp-stock_effects-object-colorize" confirm="Are you sure to unreconcile this record ?"/>
250 <button name="action_cancel_draft" type="object" states="cancel" string="Set to Draft" icon="terp-stock_effects-object-colorize"/>
251 <button name="proforma_voucher" string="Validate" states="draft" icon="gtk-go-forward"/>
257 <record id="action_vendor_payment" model="ir.actions.act_window">
258 <field name="name">Supplier Payment</field>
259 <field name="res_model">account.voucher</field>
260 <field name="view_type">form</field>
261 <field name="domain">[('journal_id.type', 'in', ['bank', 'cash']), ('type','=','payment')]</field>
262 <field name="context">{'type':'payment'}</field>
263 <field name="view_id" eval="False"/>
264 <field name="search_view_id" ref="view_voucher_filter_vendor_pay"/>
265 <field name="target">current</field>
266 <field name="help">The supplier payment form allows you to track the payment you do to your suppliers. When you select a supplier, the payment method and an amount for the payment, OpenERP will propose to reconcile your payment with the open supplier invoices or bills.</field>
268 <record id="action_vendor_payment_tree" model="ir.actions.act_window.view">
269 <field eval="1" name="sequence"/>
270 <field name="view_mode">tree</field>
271 <field name="act_window_id" ref="action_vendor_payment"/>
273 <record id="action_vendor_payment_form" model="ir.actions.act_window.view">
274 <field eval="2" name="sequence"/>
275 <field name="view_mode">form</field>
276 <field name="view_id" ref="view_vendor_payment_form"/>
277 <field name="act_window_id" ref="action_vendor_payment"/>
281 <menuitem action="action_vendor_payment" icon="STOCK_JUSTIFY_FILL" sequence="12"
282 id="menu_action_vendor_payment" parent="account.menu_finance_payables"/>
284 <record model="ir.ui.view" id="view_vendor_receipt_form">
285 <field name="name">account.voucher.receipt.form</field>
286 <field name="model">account.voucher</field>
287 <field name="type">form</field>
288 <field name="arch" type="xml">
289 <form string="Customer Payment">
290 <group col="6" colspan="4">
291 <field name="partner_id" required="1" on_change="onchange_partner_id(partner_id, journal_id, amount, currency_id, type, date, context)" string="Customer"/>
294 on_change="onchange_partner_id(partner_id, journal_id, amount, currency_id, type, date, context)"/>
295 <field name="journal_id"
296 domain="[('type','in',['bank', 'cash'])]"
297 widget="selection" select="1"
298 on_change="onchange_partner_id(partner_id, journal_id, amount, currency_id, type, date, context)"
299 string="Payment Method"/>
300 <field name="date" select="1" on_change="onchange_date(partner_id, journal_id, amount, currency_id, type, date, context)"/>
301 <field name="reference" select="1" string="Payment Ref"/>
302 <field name="name" colspan="2"/>
303 <field name="company_id" select="1" widget="selection" groups="base.group_multi_company"/>
304 <field name="account_id"
307 <field name="pre_line" invisible="1"/>
308 <field name="type" invisible="True"/>
310 <notebook colspan="4">
311 <page string="Payment Information">
312 <field name="line_cr_ids" default_get="{'journal_id':journal_id, 'type':type, 'partner_id':partner_id}" colspan="4" nolabel="1" height="140" on_change="onchange_line_ids(line_dr_ids, line_cr_ids, amount)">
313 <tree string="Invoices and outstanding transactions" editable="bottom">
314 <field name="move_line_id" context="{'journal_id':parent.journal_id, 'partner_id':parent.partner_id}"
315 on_change="onchange_move_line_id(move_line_id)"
316 domain="[('account_id.type','in',('receivable','payable')), ('reconcile_id','=', False), ('partner_id','=',parent.partner_id)]"
318 <field name="account_id" groups="base.group_extended" domain="[('type','=','receivable')]"/>
319 <field name="date_original" readonly="1"/>
320 <field name="date_due" readonly="1"/>
321 <field name="amount_original" readonly="1"/>
322 <field name="amount_unreconciled" sum="Open Balance" readonly="1"/>
323 <field name="amount" sum="Payment"/>
326 <field name="line_dr_ids" colspan="4" nolabel="1" attrs="{'invisible': [('pre_line','=',False)]}" default_get="{'journal_id':journal_id, 'partner_id':partner_id, 'type':type}" on_change="onchange_line_ids(line_dr_ids, line_cr_ids, amount)">
327 <tree string="Credits" editable="bottom">
328 <field name="move_line_id"/>
329 <field name="account_id" groups="base.group_extended" domain="[('type','=','receivable')]"/>
330 <field name="date_original"/>
331 <field name="amount_original"/>
332 <field name="amount" sum="Payment"/>
335 <group col="2" colspan="3">
336 <separator string="Internal Notes" colspan="2"/>
337 <field name="narration" colspan="2" nolabel="1"/>
339 <group col="2" colspan="1">
340 <group col="2" colspan="1">
341 <separator string="Payment Options" colspan="2"/>
342 <field name="payment_option" required="1"/>
343 <field name="writeoff_amount"
344 attrs="{'invisible':[('payment_option','!=','with_writeoff')]}"/>
345 <field name="writeoff_acc_id"
346 attrs="{'invisible':[('payment_option','!=','with_writeoff')], 'required':[('payment_option','=','with_writeoff')]}"
347 domain="[('type','=','other')]"/>
348 <field name="comment"
349 attrs="{'invisible':[('payment_option','!=','with_writeoff')]}"/>
350 <field name="analytic_id"
351 attrs="{'invisible':[('payment_option','!=','with_writeoff')]}"
352 groups="analytic.group_analytic_accounting"/>
354 <separator string="Other Information" colspan="2"/>
355 <group col="4" colspan="1">
356 <field name="currency_id" invisible="True"/>
357 <field name="number"/>
361 <page string="Journal Items" groups="base.group_extended" attrs="{'invisible': [('state','!=','posted')]}">
362 <group col="6" colspan="4">
363 <field name="period_id"/>
364 <field name="audit"/>
366 <field name="move_ids" colspan="4" nolabel="1" readonly="1">
367 <tree string="Journal Items">
368 <field name="move_id"/>
371 <field name="statement_id"/>
372 <field name="partner_id"/>
373 <field name="account_id"/>
375 <field name="debit"/>
376 <field name="credit"/>
377 <field name="state"/>
378 <field name="reconcile_id"/>
379 <field name="amount_currency"/>
380 <field name="currency_id"/>
385 <group col="10" colspan="4">
386 <field name="state"/>
387 <button name="cancel_voucher" string="Cancel" states="draft,proforma" icon="gtk-cancel"/>
388 <button name="cancel_voucher" string="Unreconcile" type="object" states="posted" icon="terp-stock_effects-object-colorize" confirm="Are you sure to unreconcile this record ?"/>
389 <button name="action_cancel_draft" type="object" states="cancel" string="Set to Draft" icon="terp-stock_effects-object-colorize"/>
390 <button name="proforma_voucher" string="Validate" states="draft" icon="gtk-go-forward"/>
396 <record id="action_vendor_receipt" model="ir.actions.act_window">
397 <field name="name">Customer Payment</field>
398 <field name="res_model">account.voucher</field>
399 <field name="view_type">form</field>
400 <field name="domain">[('journal_id.type', 'in', ['bank', 'cash']), ('type','=','receipt')]</field>
401 <field name="context">{'type':'receipt'}</field>
402 <field name="search_view_id" ref="view_voucher_filter_customer_pay"/>
403 <field name="view_id" eval="False"/>
404 <field name="target">current</field>
405 <field name="help">Sales payment allows you to register the payments you receive from your customers. In order to record a payment, you must enter the customer, the payment method (=the journal) and the payment amount. OpenERP will propose to you automatically the reconciliation of this payment with the open invoices or sales receipts.</field>
407 <record id="action_vendor_receipt_tree" model="ir.actions.act_window.view">
408 <field eval="1" name="sequence"/>
409 <field name="view_mode">tree</field>
410 <field name="act_window_id" ref="action_vendor_receipt"/>
412 <record id="action_vendor_receipt_form" model="ir.actions.act_window.view">
413 <field eval="2" name="sequence"/>
414 <field name="view_mode">form</field>
415 <field name="view_id" ref="view_vendor_receipt_form"/>
416 <field name="act_window_id" ref="action_vendor_receipt"/>
419 <menuitem action="action_vendor_receipt" icon="STOCK_JUSTIFY_FILL" sequence="12"
420 id="menu_action_vendor_receipt" parent="account.menu_finance_receivables"/>