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">
12 <field name="number" string="Voucher"/>
13 <separator orientation="vertical"/>
15 <separator orientation="vertical"/>
16 <filter icon="terp-document-new" string="Draft" domain="[('state','=','draft')]" help="Draft Vouchers"/>
17 <filter icon="terp-camera_test" string="Posted" domain="[('state','=','posted')]" help="Posted Vouchers"/>
18 <separator orientation="vertical"/>
19 <filter icon="terp-gtk-jump-to-ltr" string="To Review" domain="[('state','=','posted')]" help="To Review"/>
20 <separator orientation="vertical"/>
21 <field name="partner_id" string="Customer"/>
22 <field name="journal_id" widget="selection" context="{'journal_id': self, 'set_visible':False}" domain="[('type','in',('bank','cash'))]"/>
23 <field name="period_id"/>
26 <group expand="0" string="Group By...">
27 <filter string="Customer" icon="terp-personal" domain="[]" context="{'group_by':'partner_id'}"/>
28 <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'journal_id'}"/>
29 <filter string="Period" icon="terp-go-month" domain="[]" context="{'group_by':'period_id','visible':True}"/>
30 <filter string="Status" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
37 <record id="view_voucher_filter_vendor_pay" model="ir.ui.view">
38 <field name="name">account.voucher.purchase.pay.select</field>
39 <field name="model">account.voucher</field>
40 <field name="type">search</field>
41 <field name="arch" type="xml">
42 <search string="Search Vouchers">
44 <field name="number" string="Voucher"/>
45 <separator orientation="vertical"/>
47 <separator orientation="vertical"/>
48 <filter icon="terp-document-new" string="Draft" domain="[('state','=','draft')]" help="Draft Vouchers"/>
49 <filter icon="terp-camera_test" string="Posted" domain="[('state','=','posted')]" help="Posted Vouchers"/>
50 <separator orientation="vertical"/>
51 <filter icon="terp-gtk-jump-to-ltr" string="To Review" domain="[('state','=','posted')]" help="To Review"/>
52 <separator orientation="vertical"/>
53 <field name="partner_id" string="Supplier"/>
54 <field name="journal_id" widget="selection" context="{'journal_id': self, 'set_visible':False}" domain="[('type','in',('bank','cash'))]"/>
55 <field name="period_id"/>
58 <group expand="0" string="Group By...">
59 <filter string="Supplier" icon="terp-personal" domain="[]" context="{'group_by':'partner_id'}"/>
60 <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'journal_id'}"/>
61 <filter string="Period" icon="terp-go-month" domain="[]" context="{'group_by':'period_id','visible':True}"/>
62 <filter string="Status" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
67 <record model="ir.ui.view" id="view_low_priority_payment_form">
68 <field name="name">account.voucher.payment.low.priority.form</field>
69 <field name="model">account.voucher</field>
70 <field name="type">form</field>
71 <field name="priority">1</field>
72 <field name="arch" type="xml">
73 <form string="Bill Payment" version="7.0">
75 <field name="partner_id" required="1" on_change="onchange_partner_id(partner_id, journal_id, amount, currency_id, type, date, context)" string="Supplier" context="{'default_customer': 0, 'search_default_supplier': 1, 'default_supplier': 1, 'invoice_currency': currency_id}" />
76 <field name="amount" on_change="onchange_amount(amount, payment_rate, partner_id, journal_id, currency_id, type, date, payment_rate_currency_id, company_id, context)"/>
77 <field name="journal_id"
78 domain="[('type','in',['bank', 'cash'])]"
80 on_change="onchange_journal(journal_id, line_dr_ids, False, partner_id, date, amount, type, company_id, context)"
81 string="Payment Method"/>
82 <field name="date" on_change="onchange_date(date, currency_id, payment_rate_currency_id, amount, company_id, context)"/>
83 <field name="reference" string="Payment Ref"/>
84 <field name="name" colspan="2"/>
85 <field name="account_id"
88 <field name="pre_line" invisible="1"/>
89 <field name="type" invisible="True"/>
92 <page string="Payment Information">
93 <field name="line_dr_ids" attrs="{'invisible': [('type', '=', 'receipt')]}" context="{'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, currency_id, context)">
94 <tree string="Open Supplier Journal Entries" editable="bottom" colors="gray:amount==0">
95 <field name="move_line_id" context="{'journal_id':parent.journal_id, 'partner_id':parent.partner_id}"
96 on_change="onchange_move_line_id(move_line_id)"
97 domain="[('account_id.type','=','payable'), ('reconcile_id','=', False), ('partner_id','=',parent.partner_id)]"
99 <field name="account_id" domain="[('type','=','payable')]"/>
100 <field name="date_original" readonly="1"/>
101 <field name="date_due" readonly="1"/>
102 <field name="amount_original" readonly="1"/>
103 <field name="amount_unreconciled" readonly="1"/>
104 <field name="amount" sum="Total Allocation"/>
107 <field name="line_cr_ids" attrs="{'invisible': [('type', '=', 'payment')]}" context="{'journal_id':journal_id, 'partner_id':partner_id}" on_change="onchange_line_ids(line_dr_ids, line_cr_ids, amount, currency_id, context)">
108 <tree string="Open Customer Journal Entries" editable="bottom" colors="gray:amount==0">
109 <field name="move_line_id" context="{'journal_id':parent.journal_id, 'partner_id':parent.partner_id}"
110 on_change="onchange_move_line_id(move_line_id)"
111 domain="[('account_id.type','=','payable'), ('reconcile_id','=', False), ('partner_id','=',parent.partner_id)]"
113 <field name="account_id" domain="[('type','=','payable')]"/>
114 <field name="date_original" readonly="1"/>
115 <field name="date_due" readonly="1"/>
116 <field name="amount_original" readonly="1"/>
117 <field name="amount_unreconciled" readonly="1"/>
118 <field name="amount" sum="Total Allocation"/>
122 <group string="Internal Notes">
123 <field name="narration" nolabel="1" colspan="2"/>
125 <group string="Other Information" col="4">
126 <field name="currency_id" colspan="4"/>
127 <field name="payment_rate" required="1" on_change="onchange_rate(payment_rate, amount, currency_id, payment_rate_currency_id, company_id, context)" colspan="3"/>
128 <field name="payment_rate_currency_id" colspan="1" nolabel="1" on_change="onchange_payment_rate_currency(currency_id, payment_rate, payment_rate_currency_id, date, amount, company_id, context)"/>
129 <field name="paid_amount_in_company_currency" colspan="4" invisible="1"/>
130 <field name="number" colspan="4"/>
139 <record model="ir.ui.view" id="view_vendor_payment_form">
140 <field name="name">account.voucher.payment.form</field>
141 <field name="model">account.voucher</field>
142 <field name="type">form</field>
143 <field name="arch" type="xml">
146 <button name="proforma_voucher" string="Validate" states="draft" invisible="context.get('line_type', False)" class="oe_highlight"/>
147 <button name="cancel_voucher" string="Cancel" states="draft,proforma" invisible="context.get('line_type', False)"/>
148 <button name="cancel_voucher" string="Unreconcile" type="object" states="posted" invisible="context.get('line_type', False)" confirm="Are you sure to unreconcile and cancel this record ?"/>
149 <button name="action_cancel_draft" type="object" states="cancel" string="Set to Draft" invisible="context.get('line_type', False)"/>
150 <field name="state" widget="statusbar" statusbar_visible="draft,posted" statusbar_colors='{"proforma":"blue"}'/>
153 <field name="account_id" invisible="True"/>
154 <field name="pre_line" invisible="1"/>
155 <field name="type" invisible="True"/>
158 <field name="partner_id" required="1" invisible="context.get('line_type', False)" on_change="onchange_partner_id(partner_id, journal_id, amount, currency_id, type, date, context)" context="{'invoice_currency':currency_id, 'default_customer': 0, 'search_default_supplier': 1, 'default_supplier': 1}" string="Supplier"/>
159 <label for="amount" string="Amount"/>
161 <field name="amount" invisible="context.get('line_type', False)" on_change="onchange_amount(amount, payment_rate, partner_id, journal_id, currency_id, type, date, payment_rate_currency_id, company_id, context)" class="oe_inline"/>
162 <field name="currency_id" class="oe_inline"/>
164 <field name="journal_id"
165 domain="[('type','in',['bank', 'cash'])]"
166 invisible="context.get('line_type', False)"
168 on_change="onchange_journal(journal_id, line_dr_ids, False, partner_id, date, amount, type, company_id, context)"
169 string="Payment Method"/>
172 <field name="date" invisible="context.get('line_type', False)" on_change="onchange_date(date, currency_id, payment_rate_currency_id, amount, company_id, context)"/>
173 <field name="reference" invisible="context.get('line_type', False)" string="Payment Ref" placeholder="003/10"/>
174 <field name="name" colspan="2" invisible="context.get('line_type', False)" placeholder="Invoice SAJ/0042"/>
175 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
179 <page string="Payment Information">
180 <field name="line_dr_ids" context="{'journal_id':journal_id, 'type':type, 'partner_id':partner_id}">
181 <tree string="Supplier Invoices and Outstanding transactions" editable="bottom" colors="gray:amount==0">
182 <field name="move_line_id" context="{'journal_id':parent.journal_id, 'partner_id':parent.partner_id}"
183 on_change="onchange_move_line_id(move_line_id)"
184 domain="[('account_id.type','=','payable'), ('reconcile_id','=', False), ('partner_id','=',parent.partner_id)]"
187 <field name="account_id" groups="base.group_no_one" domain="[('type','=','payable')]"/>
188 <field name="date_original" readonly="1"/>
189 <field name="date_due" readonly="1"/>
190 <field name="amount_original" readonly="1"/>
191 <field name="amount_unreconciled" readonly="1" groups="account.group_account_user"/>
192 <field name="reconcile" on_change="onchange_reconcile(reconcile, amount, amount_unreconciled, context)" groups="account.group_account_user"/>
193 <field name="amount" sum="Total Allocation" on_change="onchange_amount(amount, amount_unreconciled, context)"/>
196 <field name="line_cr_ids" attrs="{'invisible': [('pre_line','=',False)]}" context="{'journal_id':journal_id, 'partner_id':partner_id}">
197 <tree string="Credits" editable="bottom" colors="gray:amount==0">
198 <field name="move_line_id" context="{'journal_id':parent.journal_id, 'partner_id':parent.partner_id}"
199 on_change="onchange_move_line_id(move_line_id)"
200 domain="[('account_id.type','=','payable'), ('reconcile_id','=', False), ('partner_id','=',parent.partner_id)]"
203 <field name="account_id" groups="base.group_no_one" domain="[('type','=','payable')]"/>
204 <field name="date_original" readonly="1"/>
205 <field name="date_due" readonly="1"/>
206 <field name="amount_original" readonly="1"/>
207 <field name="amount_unreconciled" readonly="1" groups="account.group_account_user"/>
208 <field name="reconcile" on_change="onchange_reconcile(reconcile, amount, amount_unreconciled, context)" groups="account.group_account_user"/>
209 <field name="amount" sum="Total Allocation" on_change="onchange_amount(amount, amount_unreconciled, context)"/>
213 <group string="Internal Notes">
214 <field name="narration" colspan="2" nolabel="1"/>
217 <group col="4" attrs="{'invisible':[('currency_id','=',False),('is_multi_currency','=',False)]}">
218 <separator string="Currency Options" colspan="4"/>
219 <field name="is_multi_currency" invisible="1"/>
220 <field name="payment_rate" required="1" on_change="onchange_rate(payment_rate, amount, currency_id, payment_rate_currency_id, company_id, context)" colspan="3"/>
221 <field name="payment_rate_currency_id" colspan="1" nolabel="1" on_change="onchange_payment_rate_currency(currency_id, payment_rate, payment_rate_currency_id, date, amount, company_id, context)"/>
222 <field name="paid_amount_in_company_currency" colspan="4" invisible="1"/>
225 <separator string="Payment Options" colspan="2"/>
226 <field name="writeoff_amount"/>
227 <field name="payment_option" required="1"/>
228 <field name="writeoff_acc_id"
229 attrs="{'invisible':[('payment_option','!=','with_writeoff')], 'required':[('payment_option','=','with_writeoff')]}"
230 domain="[('type','=','other')]"/>
231 <field name="comment"
232 attrs="{'invisible':[('payment_option','!=','with_writeoff')]}"/>
233 <field name="analytic_id"
234 groups="analytic.group_analytic_accounting"/>
239 <page string="Journal Items" attrs="{'invisible': [('state','!=','posted')]}">
241 <field name="period_id"/>
242 <field name="audit"/>
243 <field name="number"/>
245 <field name="move_ids" readonly="1">
246 <tree string="Journal Items">
247 <field name="move_id"/>
250 <field name="statement_id"/>
251 <field name="partner_id"/>
252 <field name="account_id"/>
254 <field name="debit"/>
255 <field name="credit"/>
256 <field name="state"/>
257 <field name="reconcile_id"/>
258 <field name="amount_currency"/>
259 <field name="currency_id"/>
265 <div class="oe_chatter">
266 <field name="message_ids" widget="mail_thread"/>
272 <record id="action_vendor_payment" model="ir.actions.act_window">
273 <field name="name">Supplier Payment</field>
274 <field name="res_model">account.voucher</field>
275 <field name="view_type">form</field>
276 <field name="domain">[('journal_id.type', 'in', ['bank', 'cash']), ('type','=','payment')]</field>
277 <field name="context">{'type':'payment'}</field>
278 <field name="view_id" eval="False"/>
279 <field name="search_view_id" ref="view_voucher_filter_vendor_pay"/>
280 <field name="target">current</field>
281 <field name="help">Click on "Create" to register a supplier payment.
283 Track payments you do to your supplier and amounts you pay.</field>
285 <record id="action_vendor_payment_tree" model="ir.actions.act_window.view">
286 <field eval="1" name="sequence"/>
287 <field name="view_mode">tree</field>
288 <field name="act_window_id" ref="action_vendor_payment"/>
290 <record id="action_vendor_payment_form" model="ir.actions.act_window.view">
291 <field eval="2" name="sequence"/>
292 <field name="view_mode">form</field>
293 <field name="view_id" ref="view_vendor_payment_form"/>
294 <field name="act_window_id" ref="action_vendor_payment"/>
298 <menuitem action="action_vendor_payment" icon="STOCK_JUSTIFY_FILL" sequence="12"
299 id="menu_action_vendor_payment" parent="account.menu_finance_payables"/>
301 <record model="ir.ui.view" id="view_vendor_receipt_form">
302 <field name="name">account.voucher.receipt.form</field>
303 <field name="model">account.voucher</field>
304 <field name="type">form</field>
305 <field name="arch" type="xml">
308 <button name="proforma_voucher" string="Validate" states="draft" invisible="context.get('line_type', False)" class="oe_highlight"/>
309 <button name="cancel_voucher" string="Cancel" states="draft,proforma" invisible="context.get('line_type', False)"/>
310 <button name="cancel_voucher" string="Unreconcile" type="object" states="posted" invisible="context.get('line_type', False)" confirm="Are you sure to unreconcile and cancel this record ?"/>
311 <button name="action_cancel_draft" type="object" states="cancel" string="Set to Draft" invisible="context.get('line_type', False)"/>
312 <field name="state" widget="statusbar" statusbar_visible="draft,posted" statusbar_colors='{"proforma":"blue"}'/>
315 <h1><field name="number"/></h1>
318 <field name="partner_id" domain="[('customer','=',True)]" required="1" invisible="context.get('line_type', False)" on_change="onchange_partner_id(partner_id, journal_id, amount, currency_id, type, date, context)" string="Customer" context="{'search_default_customer': 1}"/>
320 string="Paid Amount"/>
322 <field name="amount" class="oe_inline"
323 invisible="context.get('line_type', False)"
324 on_change="onchange_amount(amount, payment_rate, partner_id, journal_id, currency_id, type, date, payment_rate_currency_id, company_id, context)"/>
325 <field name="currency_id" class="oe_inline"/>
328 <field name="journal_id"
329 domain="[('type','in',['bank', 'cash'])]"
330 invisible="context.get('line_type', False)"
332 on_change="onchange_journal(journal_id, line_cr_ids, False, partner_id, date, amount, type, company_id, context)"
333 string="Payment Method"/>
336 <field name="date" invisible="context.get('line_type', False)" on_change="onchange_date(date, currency_id, payment_rate_currency_id, amount, company_id, context)"/>
337 <field name="reference" invisible="context.get('line_type', False)" string="Payment Ref" placeholder="003/10"/>
338 <field name="name" colspan="2" invisible="context.get('line_type', False)" placeholder="Invoice SAJ/0042"/>
339 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
341 <field name="account_id"
344 <field name="pre_line" invisible="1"/>
345 <field name="type" invisible="True"/>
350 <page string="Payment Information">
351 <field name="line_cr_ids" context="{'journal_id':journal_id, 'type':type, 'partner_id':partner_id}" on_change="onchange_line_ids(line_dr_ids, line_cr_ids, amount, currency_id, context)">
352 <tree string="Invoices and outstanding transactions" editable="bottom" colors="gray:amount==0">
353 <field name="move_line_id" context="{'journal_id':parent.journal_id, 'partner_id':parent.partner_id}"
354 on_change="onchange_move_line_id(move_line_id)"
355 domain="[('account_id.type','in',('receivable','payable')), ('reconcile_id','=', False), ('partner_id','=',parent.partner_id)]"
357 groups="account.group_account_user"/>
358 <field name="account_id" groups="base.group_no_one" domain="[('type','=','receivable')]"/>
359 <field name="date_original" readonly="1"/>
360 <field name="date_due" readonly="1"/>
361 <field name="amount_original" readonly="1"/>
362 <field name="amount_unreconciled" readonly="1" groups="account.group_account_user"/>
363 <field name="reconcile" on_change="onchange_reconcile(reconcile, amount, amount_unreconciled, context)" groups="account.group_account_user"/>
364 <field name="amount" sum="Total Allocation" on_change="onchange_amount(amount, amount_unreconciled, context)" string="Allocation"/>
367 <field name="line_dr_ids" attrs="{'invisible': [('pre_line','=',False)]}" context="{'journal_id':journal_id, 'partner_id':partner_id}" on_change="onchange_line_ids(line_dr_ids, line_cr_ids, amount, currency_id, context)">
368 <tree string="Credits" editable="bottom" colors="gray:amount==0">
369 <field name="move_line_id" context="{'journal_id':parent.journal_id, 'partner_id':parent.partner_id}"
370 on_change="onchange_move_line_id(move_line_id)"
371 domain="[('account_id.type','in',('receivable','payable')), ('reconcile_id','=', False), ('partner_id','=',parent.partner_id)]"
374 <field name="account_id" groups="base.group_no_one" domain="[('type','=','receivable')]"/>
375 <field name="date_original" readonly="1"/>
376 <field name="date_due" readonly="1"/>
377 <field name="amount_original" readonly="1"/>
378 <field name="amount_unreconciled" readonly="1"/>
379 <field name="reconcile" on_change="onchange_reconcile(reconcile, amount, amount_unreconciled, context)"/>
380 <field name="amount" sum="Total Allocation" on_change="onchange_amount(amount, amount_unreconciled, context)" string="Allocation"/>
385 <field name="narration" colspan="2" nolabel="1"/>
387 <group col="4" attrs="{'invisible':[('currency_id','=',False),('is_multi_currency','=',False)]}">
388 <field name="is_multi_currency" invisible="1"/>
389 <field name="payment_rate" required="1" on_change="onchange_rate(payment_rate, amount, currency_id, payment_rate_currency_id, company_id, context)" colspan="3"/>
390 <field name="payment_rate_currency_id" colspan="1" nolabel="1" on_change="onchange_payment_rate_currency(currency_id, payment_rate, payment_rate_currency_id, date, amount, company_id, context)"/>
391 <field name="paid_amount_in_company_currency" colspan="4" invisible="1"/>
394 <field name="writeoff_amount"/>
395 <field name="payment_option" required="1"/>
396 <field name="writeoff_acc_id"
397 attrs="{'invisible':[('payment_option','!=','with_writeoff')], 'required':[('payment_option','=','with_writeoff')]}"
398 domain="[('type','=','other')]"/>
399 <field name="comment"
400 attrs="{'invisible':[('payment_option','!=','with_writeoff')]}"/>
401 <field name="analytic_id"
402 groups="analytic.group_analytic_accounting"/>
406 <page string="Journal Items" attrs="{'invisible': [('state','!=','posted')]}">
408 <field name="period_id"/>
409 <field name="audit"/>
411 <field name="move_ids" readonly="1">
412 <tree string="Journal Items">
413 <field name="move_id"/>
416 <field name="statement_id"/>
417 <field name="partner_id"/>
418 <field name="account_id"/>
420 <field name="debit"/>
421 <field name="credit"/>
422 <field name="state"/>
423 <field name="reconcile_id"/>
424 <field name="amount_currency"/>
425 <field name="currency_id"/>
431 <div class="oe_chatter">
432 <field name="message_ids" widget="mail_thread"/>
438 <record id="action_vendor_receipt" model="ir.actions.act_window">
439 <field name="name">Customer Payment</field>
440 <field name="res_model">account.voucher</field>
441 <field name="view_type">form</field>
442 <field name="domain">[('journal_id.type', 'in', ['bank', 'cash']), ('type','=','receipt')]</field>
443 <field name="context">{'type':'receipt'}</field>
444 <field name="search_view_id" ref="view_voucher_filter_customer_pay"/>
445 <field name="view_id" eval="False"/>
446 <field name="target">current</field>
448 Click on create to register a payment.
450 Enter the customer and the payment method and then, either create manually a payment record or OpenERP will propose to you automatically the reconciliation of this payment with the open invoices or sales receipts.
453 <record id="action_vendor_receipt_tree" model="ir.actions.act_window.view">
454 <field eval="1" name="sequence"/>
455 <field name="view_mode">tree</field>
456 <field name="act_window_id" ref="action_vendor_receipt"/>
458 <record id="action_vendor_receipt_form" model="ir.actions.act_window.view">
459 <field eval="2" name="sequence"/>
460 <field name="view_mode">form</field>
461 <field name="view_id" ref="view_vendor_receipt_form"/>
462 <field name="act_window_id" ref="action_vendor_receipt"/>
465 <menuitem action="action_vendor_receipt" icon="STOCK_JUSTIFY_FILL" sequence="12"
466 id="menu_action_vendor_receipt" parent="account.menu_finance_receivables"/>