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 <field name="number" string="Voucher"/>
13 <filter icon="terp-document-new" string="Draft" domain="[('state','=','draft')]" help="Draft Vouchers"/>
14 <filter icon="terp-camera_test" string="Posted" domain="[('state','=','posted')]" help="Posted Vouchers"/>
15 <field name="partner_id" string="Customer"/>
16 <field name="journal_id" context="{'journal_id': self, 'set_visible':False}" domain="[('type','in',('bank','cash'))]"/>
17 <field name="period_id"/>
18 <group expand="0" string="Group By...">
19 <filter string="Customer" icon="terp-personal" domain="[]" context="{'group_by':'partner_id'}"/>
20 <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'journal_id'}"/>
21 <filter string="Period" icon="terp-go-month" domain="[]" context="{'group_by':'period_id','visible':True}"/>
22 <filter string="Status" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
29 <record id="view_voucher_filter_vendor_pay" model="ir.ui.view">
30 <field name="name">account.voucher.purchase.pay.select</field>
31 <field name="model">account.voucher</field>
32 <field name="type">search</field>
33 <field name="arch" type="xml">
34 <search string="Search Vouchers">
35 <field name="number" string="Voucher"/>
37 <filter icon="terp-document-new" string="Draft" domain="[('state','=','draft')]" help="Draft Vouchers"/>
38 <filter icon="terp-camera_test" string="Posted" domain="[('state','=','posted')]" help="Posted Vouchers"/>
39 <field name="partner_id" string="Supplier"/>
40 <field name="journal_id" context="{'journal_id': self, 'set_visible':False}" domain="[('type','in',('bank','cash'))]"/>
41 <field name="period_id"/>
42 <group expand="0" string="Group By...">
43 <filter string="Supplier" icon="terp-personal" domain="[]" context="{'group_by':'partner_id'}"/>
44 <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'journal_id'}"/>
45 <filter string="Period" icon="terp-go-month" domain="[]" context="{'group_by':'period_id','visible':True}"/>
46 <filter string="Status" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
51 <record model="ir.ui.view" id="view_low_priority_payment_form">
52 <field name="name">account.voucher.payment.low.priority.form</field>
53 <field name="model">account.voucher</field>
54 <field name="type">form</field>
55 <field name="priority">1</field>
56 <field name="arch" type="xml">
57 <form string="Bill Payment" version="7.0">
59 <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}" />
60 <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)"/>
61 <field name="journal_id"
62 domain="[('type','in',['bank', 'cash'])]"
64 on_change="onchange_journal(journal_id, line_dr_ids, False, partner_id, date, amount, type, company_id, context)"
65 string="Payment Method"/>
66 <field name="date" on_change="onchange_date(date, currency_id, payment_rate_currency_id, amount, company_id, context)"/>
67 <field name="reference" string="Payment Ref"/>
68 <field name="name" colspan="2"/>
69 <field name="account_id"
72 <field name="pre_line" invisible="1"/>
73 <field name="type" invisible="True"/>
76 <page string="Payment Information">
77 <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)">
78 <tree string="Open Supplier Journal Entries" editable="bottom" colors="gray:amount==0">
79 <field name="move_line_id" context="{'journal_id':parent.journal_id, 'partner_id':parent.partner_id}"
80 on_change="onchange_move_line_id(move_line_id)"
81 domain="[('account_id.type','=','payable'), ('reconcile_id','=', False), ('partner_id','=',parent.partner_id)]"
83 <field name="account_id" domain="[('type','=','payable')]"/>
84 <field name="date_original" readonly="1"/>
85 <field name="date_due" readonly="1"/>
86 <field name="amount_original" readonly="1"/>
87 <field name="amount_unreconciled" readonly="1"/>
88 <field name="amount" sum="Total Allocation"/>
91 <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)">
92 <tree string="Open Customer Journal Entries" editable="bottom" colors="gray:amount==0">
93 <field name="move_line_id" context="{'journal_id':parent.journal_id, 'partner_id':parent.partner_id}"
94 on_change="onchange_move_line_id(move_line_id)"
95 domain="[('account_id.type','=','payable'), ('reconcile_id','=', False), ('partner_id','=',parent.partner_id)]"
97 <field name="account_id" domain="[('type','=','payable')]"/>
98 <field name="date_original" readonly="1"/>
99 <field name="date_due" readonly="1"/>
100 <field name="amount_original" readonly="1"/>
101 <field name="amount_unreconciled" readonly="1"/>
102 <field name="amount" sum="Total Allocation"/>
106 <group string="Internal Notes">
107 <field name="narration" nolabel="1" colspan="2"/>
109 <group string="Other Information" col="4">
110 <field name="currency_id" colspan="4"/>
111 <field name="payment_rate" required="1" on_change="onchange_rate(payment_rate, amount, currency_id, payment_rate_currency_id, company_id, context)" colspan="3"/>
112 <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)"/>
113 <field name="paid_amount_in_company_currency" colspan="4" invisible="1"/>
114 <field name="number" colspan="4"/>
123 <record model="ir.ui.view" id="view_vendor_payment_form">
124 <field name="name">account.voucher.payment.form</field>
125 <field name="model">account.voucher</field>
126 <field name="type">form</field>
127 <field name="arch" type="xml">
130 <button name="proforma_voucher" string="Validate" states="draft" invisible="context.get('line_type', False)" class="oe_highlight"/>
131 <button name="cancel_voucher" string="Cancel" states="draft,proforma" invisible="context.get('line_type', False)"/>
132 <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 ?"/>
133 <button name="action_cancel_draft" type="object" states="cancel" string="Set to Draft" invisible="context.get('line_type', False)"/>
134 <field name="state" widget="statusbar" statusbar_visible="draft,posted" statusbar_colors='{"proforma":"blue"}'/>
137 <field name="account_id" invisible="True"/>
138 <field name="pre_line" invisible="1"/>
139 <field name="type" invisible="True"/>
142 <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"/>
143 <label for="amount" string="Amount"/>
145 <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"/>
146 <field name="currency_id" class="oe_inline"/>
148 <field name="journal_id"
149 domain="[('type','in',['bank', 'cash'])]"
150 invisible="context.get('line_type', False)"
152 on_change="onchange_journal(journal_id, line_dr_ids, False, partner_id, date, amount, type, company_id, context)"
153 string="Payment Method"/>
156 <field name="date" invisible="context.get('line_type', False)" on_change="onchange_date(date, currency_id, payment_rate_currency_id, amount, company_id, context)"/>
157 <field name="reference" invisible="context.get('line_type', False)" string="Payment Ref" placeholder="003/10"/>
158 <field name="name" colspan="2" invisible="context.get('line_type', False)" placeholder="Invoice SAJ/0042"/>
159 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
163 <page string="Payment Information">
164 <field name="line_dr_ids" context="{'journal_id':journal_id, 'type':type, 'partner_id':partner_id}">
165 <tree string="Supplier Invoices and Outstanding transactions" editable="bottom" colors="gray:amount==0">
166 <field name="move_line_id" context="{'journal_id':parent.journal_id, 'partner_id':parent.partner_id}"
167 on_change="onchange_move_line_id(move_line_id)"
168 domain="[('account_id.type','=','payable'), ('reconcile_id','=', False), ('partner_id','=',parent.partner_id)]"
171 <field name="account_id" groups="base.group_no_one" domain="[('type','=','payable')]"/>
172 <field name="date_original" readonly="1"/>
173 <field name="date_due" readonly="1"/>
174 <field name="amount_original" readonly="1"/>
175 <field name="amount_unreconciled" readonly="1" groups="account.group_account_user"/>
176 <field name="reconcile" on_change="onchange_reconcile(reconcile, amount, amount_unreconciled, context)" groups="account.group_account_user"/>
177 <field name="amount" sum="Total Allocation" on_change="onchange_amount(amount, amount_unreconciled, context)"/>
180 <field name="line_cr_ids" attrs="{'invisible': [('pre_line','=',False)]}" context="{'journal_id':journal_id, 'partner_id':partner_id}">
181 <tree string="Credits" 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)"/>
197 <group string="Internal Notes">
198 <field name="narration" colspan="2" nolabel="1"/>
201 <group col="4" attrs="{'invisible':[('currency_id','=',False),('is_multi_currency','=',False)]}">
202 <separator string="Currency Options" colspan="4"/>
203 <field name="is_multi_currency" invisible="1"/>
204 <field name="payment_rate" required="1" on_change="onchange_rate(payment_rate, amount, currency_id, payment_rate_currency_id, company_id, context)" colspan="3"/>
205 <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)"/>
206 <field name="paid_amount_in_company_currency" colspan="4" invisible="1"/>
209 <separator string="Payment Options" colspan="2"/>
210 <field name="writeoff_amount"/>
211 <field name="payment_option" required="1"/>
212 <field name="writeoff_acc_id"
213 attrs="{'invisible':[('payment_option','!=','with_writeoff')], 'required':[('payment_option','=','with_writeoff')]}"
214 domain="[('type','=','other')]"/>
215 <field name="comment"
216 attrs="{'invisible':[('payment_option','!=','with_writeoff')]}"/>
217 <field name="analytic_id"
218 groups="analytic.group_analytic_accounting"/>
223 <page string="Journal Items" attrs="{'invisible': [('state','!=','posted')]}">
225 <field name="period_id"/>
226 <field name="audit"/>
227 <field name="number"/>
229 <field name="move_ids" readonly="1">
230 <tree string="Journal Items">
231 <field name="move_id"/>
234 <field name="statement_id"/>
235 <field name="partner_id"/>
236 <field name="account_id"/>
238 <field name="debit"/>
239 <field name="credit"/>
240 <field name="state"/>
241 <field name="reconcile_id"/>
242 <field name="amount_currency"/>
243 <field name="currency_id"/>
249 <div class="oe_chatter">
250 <field name="message_ids" widget="mail_thread"/>
256 <record id="action_vendor_payment" model="ir.actions.act_window">
257 <field name="name">Supplier Payment</field>
258 <field name="res_model">account.voucher</field>
259 <field name="view_type">form</field>
260 <field name="domain">[('journal_id.type', 'in', ['bank', 'cash']), ('type','=','payment')]</field>
261 <field name="context">{'type':'payment'}</field>
262 <field name="view_id" eval="False"/>
263 <field name="search_view_id" ref="view_voucher_filter_vendor_pay"/>
264 <field name="target">current</field>
265 <field name="help">Click on "Create" to register a supplier payment.
267 Track payments you do to your supplier and amounts you pay.</field>
269 <record id="action_vendor_payment_tree" model="ir.actions.act_window.view">
270 <field eval="1" name="sequence"/>
271 <field name="view_mode">tree</field>
272 <field name="act_window_id" ref="action_vendor_payment"/>
274 <record id="action_vendor_payment_form" model="ir.actions.act_window.view">
275 <field eval="2" name="sequence"/>
276 <field name="view_mode">form</field>
277 <field name="view_id" ref="view_vendor_payment_form"/>
278 <field name="act_window_id" ref="action_vendor_payment"/>
282 <menuitem action="action_vendor_payment" icon="STOCK_JUSTIFY_FILL" sequence="12"
283 id="menu_action_vendor_payment" parent="account.menu_finance_payables"/>
285 <record model="ir.ui.view" id="view_vendor_receipt_form">
286 <field name="name">account.voucher.receipt.form</field>
287 <field name="model">account.voucher</field>
288 <field name="type">form</field>
289 <field name="arch" type="xml">
292 <button name="proforma_voucher" string="Validate" states="draft" invisible="context.get('line_type', False)" class="oe_highlight"/>
293 <button name="cancel_voucher" string="Cancel" states="draft,proforma" invisible="context.get('line_type', False)"/>
294 <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 ?"/>
295 <button name="action_cancel_draft" type="object" states="cancel" string="Set to Draft" invisible="context.get('line_type', False)"/>
296 <field name="state" widget="statusbar" statusbar_visible="draft,posted" statusbar_colors='{"proforma":"blue"}'/>
299 <h1><field name="number"/></h1>
302 <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}"/>
304 string="Paid Amount"/>
306 <field name="amount" class="oe_inline"
307 invisible="context.get('line_type', False)"
308 on_change="onchange_amount(amount, payment_rate, partner_id, journal_id, currency_id, type, date, payment_rate_currency_id, company_id, context)"/>
309 <field name="currency_id" class="oe_inline"/>
312 <field name="journal_id"
313 domain="[('type','in',['bank', 'cash'])]"
314 invisible="context.get('line_type', False)"
316 on_change="onchange_journal(journal_id, line_cr_ids, False, partner_id, date, amount, type, company_id, context)"
317 string="Payment Method"/>
320 <field name="date" invisible="context.get('line_type', False)" on_change="onchange_date(date, currency_id, payment_rate_currency_id, amount, company_id, context)"/>
321 <field name="reference" invisible="context.get('line_type', False)" string="Payment Ref" placeholder="003/10"/>
322 <field name="name" colspan="2" invisible="context.get('line_type', False)" placeholder="Invoice SAJ/0042"/>
323 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
325 <field name="account_id"
328 <field name="pre_line" invisible="1"/>
329 <field name="type" invisible="True"/>
334 <page string="Payment Information">
335 <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)">
336 <tree string="Invoices and outstanding transactions" editable="bottom" colors="gray:amount==0">
337 <field name="move_line_id" context="{'journal_id':parent.journal_id, 'partner_id':parent.partner_id}"
338 on_change="onchange_move_line_id(move_line_id)"
339 domain="[('account_id.type','in',('receivable','payable')), ('reconcile_id','=', False), ('partner_id','=',parent.partner_id)]"
341 groups="account.group_account_user"/>
342 <field name="account_id" groups="base.group_no_one" domain="[('type','=','receivable')]"/>
343 <field name="date_original" readonly="1"/>
344 <field name="date_due" readonly="1"/>
345 <field name="amount_original" readonly="1"/>
346 <field name="amount_unreconciled" readonly="1" groups="account.group_account_user"/>
347 <field name="reconcile" on_change="onchange_reconcile(reconcile, amount, amount_unreconciled, context)" groups="account.group_account_user"/>
348 <field name="amount" sum="Total Allocation" on_change="onchange_amount(amount, amount_unreconciled, context)" string="Allocation"/>
351 <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)">
352 <tree string="Credits" 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)]"
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"/>
363 <field name="reconcile" on_change="onchange_reconcile(reconcile, amount, amount_unreconciled, context)"/>
364 <field name="amount" sum="Total Allocation" on_change="onchange_amount(amount, amount_unreconciled, context)" string="Allocation"/>
369 <field name="narration" colspan="2" nolabel="1"/>
371 <group col="4" attrs="{'invisible':[('currency_id','=',False),('is_multi_currency','=',False)]}">
372 <field name="is_multi_currency" invisible="1"/>
373 <field name="payment_rate" required="1" on_change="onchange_rate(payment_rate, amount, currency_id, payment_rate_currency_id, company_id, context)" colspan="3"/>
374 <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)"/>
375 <field name="paid_amount_in_company_currency" colspan="4" invisible="1"/>
378 <field name="writeoff_amount"/>
379 <field name="payment_option" required="1"/>
380 <field name="writeoff_acc_id"
381 attrs="{'invisible':[('payment_option','!=','with_writeoff')], 'required':[('payment_option','=','with_writeoff')]}"
382 domain="[('type','=','other')]"/>
383 <field name="comment"
384 attrs="{'invisible':[('payment_option','!=','with_writeoff')]}"/>
385 <field name="analytic_id"
386 groups="analytic.group_analytic_accounting"/>
390 <page string="Journal Items" attrs="{'invisible': [('state','!=','posted')]}">
392 <field name="period_id"/>
393 <field name="audit"/>
395 <field name="move_ids" readonly="1">
396 <tree string="Journal Items">
397 <field name="move_id"/>
400 <field name="statement_id"/>
401 <field name="partner_id"/>
402 <field name="account_id"/>
404 <field name="debit"/>
405 <field name="credit"/>
406 <field name="state"/>
407 <field name="reconcile_id"/>
408 <field name="amount_currency"/>
409 <field name="currency_id"/>
415 <div class="oe_chatter">
416 <field name="message_ids" widget="mail_thread"/>
422 <record id="action_vendor_receipt" model="ir.actions.act_window">
423 <field name="name">Customer Payment</field>
424 <field name="res_model">account.voucher</field>
425 <field name="view_type">form</field>
426 <field name="domain">[('journal_id.type', 'in', ['bank', 'cash']), ('type','=','receipt')]</field>
427 <field name="context">{'type':'receipt'}</field>
428 <field name="search_view_id" ref="view_voucher_filter_customer_pay"/>
429 <field name="view_id" eval="False"/>
430 <field name="target">current</field>
432 Click on create to register a payment.
434 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.
437 <record id="action_vendor_receipt_tree" model="ir.actions.act_window.view">
438 <field eval="1" name="sequence"/>
439 <field name="view_mode">tree</field>
440 <field name="act_window_id" ref="action_vendor_receipt"/>
442 <record id="action_vendor_receipt_form" model="ir.actions.act_window.view">
443 <field eval="2" name="sequence"/>
444 <field name="view_mode">form</field>
445 <field name="view_id" ref="view_vendor_receipt_form"/>
446 <field name="act_window_id" ref="action_vendor_receipt"/>
449 <menuitem action="action_vendor_receipt" icon="STOCK_JUSTIFY_FILL" sequence="12"
450 id="menu_action_vendor_receipt" parent="account.menu_finance_receivables"/>