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="arch" type="xml">
9 <search string="Search Vouchers">
10 <field name="number" string="Voucher"/>
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 <field name="partner_id" string="Customer"/>
15 <field name="journal_id" context="{'journal_id': self, 'set_visible':False}" domain="[('type','in',('bank','cash'))]"/>
16 <field name="period_id"/>
17 <group expand="0" string="Group By...">
18 <filter string="Customer" icon="terp-personal" domain="[]" context="{'group_by':'partner_id'}"/>
19 <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'journal_id'}"/>
20 <filter string="Period" icon="terp-go-month" domain="[]" context="{'group_by':'period_id','visible':True}"/>
21 <filter string="Status" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
28 <record id="view_voucher_filter_vendor_pay" model="ir.ui.view">
29 <field name="name">account.voucher.purchase.pay.select</field>
30 <field name="model">account.voucher</field>
31 <field name="arch" type="xml">
32 <search string="Search Vouchers">
33 <field name="number" string="Voucher"/>
35 <filter icon="terp-document-new" string="Draft" domain="[('state','=','draft')]" help="Draft Vouchers"/>
36 <filter icon="terp-camera_test" string="Posted" domain="[('state','=','posted')]" help="Posted Vouchers"/>
37 <field name="partner_id" string="Supplier"/>
38 <field name="journal_id" context="{'journal_id': self, 'set_visible':False}" domain="[('type','in',('bank','cash'))]"/>
39 <field name="period_id"/>
40 <group expand="0" string="Group By...">
41 <filter string="Supplier" icon="terp-personal" domain="[]" context="{'group_by':'partner_id'}"/>
42 <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'journal_id'}"/>
43 <filter string="Period" icon="terp-go-month" domain="[]" context="{'group_by':'period_id','visible':True}"/>
44 <filter string="Status" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
49 <record model="ir.ui.view" id="view_low_priority_payment_form">
50 <field name="name">account.voucher.payment.low.priority.form</field>
51 <field name="model">account.voucher</field>
52 <field name="priority">1</field>
53 <field name="arch" type="xml">
54 <form string="Bill Payment" version="7.0">
56 <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}"/>
57 <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)"/>
58 <field name="journal_id"
59 domain="[('type','in',['bank', 'cash'])]"
61 on_change="onchange_journal(journal_id, line_dr_ids, False, partner_id, date, amount, type, company_id, context)"
62 string="Payment Method"/>
63 <field name="date" on_change="onchange_date(date, currency_id, payment_rate_currency_id, amount, company_id, context)"/>
64 <field name="reference" string="Payment Ref"/>
65 <field name="name" colspan="2"/>
66 <field name="account_id"
69 <field name="pre_line" invisible="1"/>
70 <field name="type" invisible="True"/>
73 <page string="Payment Information">
74 <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, type, context)">
75 <tree string="Open Supplier Journal Entries" editable="bottom" colors="gray:amount==0">
76 <field name="move_line_id" context="{'journal_id':parent.journal_id, 'partner_id':parent.partner_id}"
77 on_change="onchange_move_line_id(move_line_id)"
78 domain="[('account_id.type','=','payable'), ('reconcile_id','=', False), ('partner_id','=',parent.partner_id)]"/>
79 <field name="account_id" domain="[('type','=','payable')]"/>
80 <field name="date_original" readonly="1"/>
81 <field name="date_due" readonly="1"/>
82 <field name="amount_original" readonly="1"/>
83 <field name="amount_unreconciled" readonly="1"/>
84 <field name="amount" sum="Total Allocation"/>
87 <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, type, context)">
88 <tree string="Open Customer Journal Entries" editable="bottom" colors="gray:amount==0">
89 <field name="move_line_id" context="{'journal_id':parent.journal_id, 'partner_id':parent.partner_id}"
90 on_change="onchange_move_line_id(move_line_id)"
91 domain="[('account_id.type','=','payable'), ('reconcile_id','=', False), ('partner_id','=',parent.partner_id)]"/>
92 <field name="account_id" domain="[('type','=','payable')]"/>
93 <field name="date_original" readonly="1"/>
94 <field name="date_due" readonly="1"/>
95 <field name="amount_original" readonly="1"/>
96 <field name="amount_unreconciled" readonly="1"/>
97 <field name="amount" sum="Total Allocation"/>
101 <group string="Internal Notes">
102 <field name="narration" nolabel="1" colspan="2"/>
104 <group string="Other Information" col="4">
105 <field name="currency_id" colspan="4" groups="base.group_multi_currency"/>
106 <field name="payment_rate" required="1" on_change="onchange_rate(payment_rate, amount, currency_id, payment_rate_currency_id, company_id, context)" colspan="3"/>
107 <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)" groups="base.group_multi_currency"/>
108 <field name="paid_amount_in_company_currency" colspan="4" invisible="1"/>
109 <field name="number" colspan="4"/>
118 <record model="ir.ui.view" id="view_vendor_payment_form">
119 <field name="name">account.voucher.payment.form</field>
120 <field name="model">account.voucher</field>
121 <field name="arch" type="xml">
122 <form string="Voucher Payment" version="7.0">
124 <button name="proforma_voucher" string="Validate" states="draft" invisible="context.get('line_type', False)" class="oe_highlight"/>
125 <button name="cancel_voucher" string="Cancel" states="draft,proforma" invisible="context.get('line_type', False)"/>
126 <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 ?"/>
127 <button name="action_cancel_draft" type="object" states="cancel" string="Set to Draft" invisible="context.get('line_type', False)"/>
128 <field name="state" widget="statusbar" statusbar_visible="draft,posted" statusbar_colors='{"proforma":"blue"}'/>
131 <field name="account_id" invisible="True"/>
132 <field name="pre_line" invisible="1"/>
133 <field name="type" invisible="True"/>
136 <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"/>
137 <label for="amount" string="Amount"/>
139 <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"/>
140 <field name="currency_id" class="oe_inline"/>
142 <field name="journal_id"
143 domain="[('type','in',['bank', 'cash'])]"
144 invisible="context.get('line_type', False)"
146 on_change="onchange_journal(journal_id, line_dr_ids, False, partner_id, date, amount, type, company_id, context)"
147 string="Payment Method"/>
150 <field name="date" invisible="context.get('line_type', False)" on_change="onchange_date(date, currency_id, payment_rate_currency_id, amount, company_id, context)"/>
151 <field name="reference" invisible="context.get('line_type', False)" string="Payment Ref" placeholder="e.g. 003/10"/>
152 <field name="name" colspan="2" invisible="context.get('line_type', False)" placeholder="e.g. Invoice SAJ/0042"/>
153 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
157 <page string="Payment Information">
158 <field name="line_dr_ids" attrs="{'invisible': [('line_dr_ids','=',False)]}" context="{'journal_id':journal_id, 'type':type, 'partner_id':partner_id}">
159 <tree string="Supplier Invoices and Outstanding transactions" editable="bottom" colors="gray:amount==0">
160 <field name="move_line_id" context="{'journal_id':parent.journal_id, 'partner_id':parent.partner_id}"
161 on_change="onchange_move_line_id(move_line_id)"
162 domain="[('account_id.type','=','payable'), ('reconcile_id','=', False), ('partner_id','=',parent.partner_id)]"
164 <field name="account_id" groups="base.group_no_one" domain="[('type','=','payable')]"/>
165 <field name="date_original" readonly="1"/>
166 <field name="date_due" readonly="1"/>
167 <field name="amount_original" readonly="1"/>
168 <field name="amount_unreconciled" readonly="1" groups="account.group_account_user"/>
169 <field name="reconcile" on_change="onchange_reconcile(reconcile, amount, amount_unreconciled, context)" groups="account.group_account_user"/>
170 <field name="amount" sum="Total Allocation" on_change="onchange_amount(amount, amount_unreconciled, context)"/>
173 <field name="line_cr_ids" attrs="{'invisible': [('pre_line','=',False)]}" context="{'journal_id':journal_id, 'partner_id':partner_id}">
174 <tree string="Credits" editable="bottom" colors="gray:amount==0">
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_no_one" 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" readonly="1" groups="account.group_account_user"/>
184 <field name="reconcile" on_change="onchange_reconcile(reconcile, amount, amount_unreconciled, context)" groups="account.group_account_user"/>
185 <field name="amount" sum="Total Allocation" on_change="onchange_amount(amount, amount_unreconciled, context)"/>
189 <group string="Internal Notes">
190 <field name="narration" colspan="2" nolabel="1"/>
193 <group col="4" attrs="{'invisible':[('currency_id','=',False),('is_multi_currency','=',False)]}">
194 <separator string="Currency Options" colspan="4"/>
195 <field name="is_multi_currency" invisible="1"/>
196 <field name="payment_rate" required="1" on_change="onchange_rate(payment_rate, amount, currency_id, payment_rate_currency_id, company_id, context)" colspan="3"/>
197 <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)" groups="base.group_multi_currency"/>
198 <field name="paid_amount_in_company_currency" colspan="4" invisible="1"/>
201 <separator string="Payment Options" colspan="2"/>
202 <field name="writeoff_amount"/>
203 <field name="payment_option" required="1"/>
204 <field name="writeoff_acc_id"
205 attrs="{'invisible':[('payment_option','!=','with_writeoff')], 'required':[('payment_option','=','with_writeoff')]}"
206 domain="[('type','=','other')]"/>
207 <field name="comment"
208 attrs="{'invisible':[('payment_option','!=','with_writeoff')]}"/>
209 <field name="analytic_id"
210 groups="analytic.group_analytic_accounting"/>
215 <page string="Journal Items" attrs="{'invisible': [('state','!=','posted')]}">
217 <field name="period_id"/>
218 <field name="audit"/>
219 <field name="number"/>
221 <field name="move_ids" readonly="1">
222 <tree string="Journal Items">
223 <field name="move_id"/>
226 <field name="statement_id"/>
227 <field name="partner_id"/>
228 <field name="account_id"/>
230 <field name="debit"/>
231 <field name="credit"/>
232 <field name="state"/>
233 <field name="reconcile_id"/>
234 <field name="amount_currency" groups="base.group_multi_currency"/>
235 <field name="currency_id" groups="base.group_multi_currency"/>
241 <div class="oe_chatter">
242 <field name="message_ids" widget="mail_thread"/>
243 <field name="message_follower_ids" widget="mail_followers"/>
249 <record id="action_vendor_payment" model="ir.actions.act_window">
250 <field name="name">Supplier Payment</field>
251 <field name="res_model">account.voucher</field>
252 <field name="view_type">form</field>
253 <field name="domain">[('journal_id.type', 'in', ['bank', 'cash']), ('type','=','payment')]</field>
254 <field name="context">{'type':'payment'}</field>
255 <field name="view_id" eval="False"/>
256 <field name="search_view_id" ref="view_voucher_filter_vendor_pay"/>
257 <field name="target">current</field>
258 <field name="help" type="html">
259 <p class="oe_view_nocontent_create">
260 Click to create a new supplier payment.
262 OpenERP helps you easily track payments you do and remining
263 balance to pay to your supplier.
267 <record id="action_vendor_payment_tree" model="ir.actions.act_window.view">
268 <field eval="1" name="sequence"/>
269 <field name="view_mode">tree</field>
270 <field name="act_window_id" ref="action_vendor_payment"/>
272 <record id="action_vendor_payment_form" model="ir.actions.act_window.view">
273 <field eval="2" name="sequence"/>
274 <field name="view_mode">form</field>
275 <field name="view_id" ref="view_vendor_payment_form"/>
276 <field name="act_window_id" ref="action_vendor_payment"/>
280 <menuitem action="action_vendor_payment" icon="STOCK_JUSTIFY_FILL" sequence="12"
281 id="menu_action_vendor_payment" parent="account.menu_finance_payables"/>
283 <record model="ir.ui.view" id="view_vendor_receipt_form">
284 <field name="name">account.voucher.receipt.form</field>
285 <field name="model">account.voucher</field>
286 <field name="arch" type="xml">
287 <form string="Receipt" version="7.0">
289 <button name="proforma_voucher" string="Validate" states="draft" invisible="context.get('line_type', False)" class="oe_highlight"/>
290 <button name="cancel_voucher" string="Cancel" states="draft,proforma" invisible="context.get('line_type', False)"/>
291 <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 ?"/>
292 <button name="action_cancel_draft" type="object" states="cancel" string="Set to Draft" invisible="context.get('line_type', False)"/>
293 <field name="state" widget="statusbar" statusbar_visible="draft,posted" statusbar_colors='{"proforma":"blue"}'/>
296 <h1><field name="number"/></h1>
299 <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}"/>
300 <label for="amount" string="Paid Amount"/>
302 <field name="amount" class="oe_inline"
303 invisible="context.get('line_type', False)"
304 on_change="onchange_amount(amount, payment_rate, partner_id, journal_id, currency_id, type, date, payment_rate_currency_id, company_id, context)"/>
305 <field name="currency_id" class="oe_inline"/>
308 <field name="journal_id"
309 domain="[('type','in',['bank', 'cash'])]"
310 invisible="context.get('line_type', False)"
312 on_change="onchange_journal(journal_id, line_cr_ids, False, partner_id, date, amount, type, company_id, context)"
313 string="Payment Method"/>
316 <field name="date" invisible="context.get('line_type', False)" on_change="onchange_date(date, currency_id, payment_rate_currency_id, amount, company_id, context)"/>
317 <field name="reference" invisible="context.get('line_type', False)" string="Payment Ref" placeholder="e.g. 003/10"/>
318 <field name="name" colspan="2" invisible="context.get('line_type', False)" placeholder="e.g. Invoice SAJ/0042"/>
319 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
321 <field name="account_id"
324 <field name="pre_line" invisible="1"/>
325 <field name="type" invisible="True"/>
330 <page string="Payment Information" groups="base.group_user">
331 <field name="line_cr_ids" attrs="{'invisible': [('line_cr_ids','=',False)]}" 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, type, context)">
332 <tree string="Invoices and outstanding transactions" editable="bottom" colors="gray:amount==0">
333 <field name="move_line_id" context="{'journal_id':parent.journal_id, 'partner_id':parent.partner_id}"
334 on_change="onchange_move_line_id(move_line_id)"
335 domain="[('account_id.type','in',('receivable','payable')), ('reconcile_id','=', False), ('partner_id','=',parent.partner_id)]"
337 groups="account.group_account_user"/>
338 <field name="account_id" groups="base.group_no_one" domain="[('type','=','receivable')]"/>
339 <field name="date_original" readonly="1"/>
340 <field name="date_due" readonly="1"/>
341 <field name="amount_original" readonly="1"/>
342 <field name="amount_unreconciled" readonly="1" groups="account.group_account_user"/>
343 <field name="reconcile" on_change="onchange_reconcile(reconcile, amount, amount_unreconciled, context)" groups="account.group_account_user"/>
344 <field name="amount" sum="Total Allocation" on_change="onchange_amount(amount, amount_unreconciled, context)" string="Allocation"/>
347 <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, type, context)">
348 <tree string="Credits" editable="bottom" colors="gray:amount==0">
349 <field name="move_line_id" context="{'journal_id':parent.journal_id, 'partner_id':parent.partner_id}"
350 on_change="onchange_move_line_id(move_line_id)"
351 domain="[('account_id.type','in',('receivable','payable')), ('reconcile_id','=', False), ('partner_id','=',parent.partner_id)]"
353 <field name="account_id" groups="base.group_no_one" domain="[('type','=','receivable')]"/>
354 <field name="date_original" readonly="1"/>
355 <field name="date_due" readonly="1"/>
356 <field name="amount_original" readonly="1"/>
357 <field name="amount_unreconciled" readonly="1"/>
358 <field name="reconcile" on_change="onchange_reconcile(reconcile, amount, amount_unreconciled, context)"/>
359 <field name="amount" sum="Total Allocation" on_change="onchange_amount(amount, amount_unreconciled, context)" string="Allocation"/>
364 <field name="narration" colspan="2" nolabel="1"/>
366 <group col="4" attrs="{'invisible':[('currency_id','=',False),('is_multi_currency','=',False)]}">
367 <field name="is_multi_currency" invisible="1"/>
368 <field name="payment_rate" required="1" on_change="onchange_rate(payment_rate, amount, currency_id, payment_rate_currency_id, company_id, context)" colspan="3"/>
369 <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)" groups="base.group_multi_currency"/>
370 <field name="paid_amount_in_company_currency" colspan="4" invisible="1"/>
373 <field name="writeoff_amount"/>
374 <field name="payment_option" required="1"/>
375 <field name="writeoff_acc_id"
376 attrs="{'invisible':[('payment_option','!=','with_writeoff')], 'required':[('payment_option','=','with_writeoff')]}"
377 domain="[('type','=','other')]"/>
378 <field name="comment"
379 attrs="{'invisible':[('payment_option','!=','with_writeoff')]}"/>
380 <field name="analytic_id"
381 groups="analytic.group_analytic_accounting"/>
385 <page string="Journal Items" attrs="{'invisible': [('state','!=','posted')]}">
387 <field name="period_id"/>
388 <field name="audit"/>
390 <field name="move_ids" readonly="1">
391 <tree string="Journal Items">
392 <field name="move_id"/>
395 <field name="statement_id"/>
396 <field name="partner_id"/>
397 <field name="account_id"/>
399 <field name="debit"/>
400 <field name="credit"/>
401 <field name="state"/>
402 <field name="reconcile_id"/>
403 <field name="amount_currency"/>
404 <field name="currency_id" groups="base.group_multi_currency"/>
410 <div class="oe_chatter">
411 <field name="message_ids" widget="mail_thread"/>
412 <field name="message_follower_ids" widget="mail_followers"/>
418 <record id="action_vendor_receipt" model="ir.actions.act_window">
419 <field name="name">Customer Payment</field>
420 <field name="res_model">account.voucher</field>
421 <field name="view_type">form</field>
422 <field name="domain">[('journal_id.type', 'in', ['bank', 'cash']), ('type','=','receipt')]</field>
423 <field name="context">{'type':'receipt'}</field>
424 <field name="search_view_id" ref="view_voucher_filter_customer_pay"/>
425 <field name="view_id" eval="False"/>
426 <field name="target">current</field>
427 <field name="help" type="html">
428 <p class="oe_view_nocontent_create">
429 Click to register a new payment.
431 Enter the customer and the payment method and then, either
432 create manually a payment record or OpenERP will propose to you
433 automatically the reconciliation of this payment with the open
434 invoices or sales receipts.
438 <record id="action_vendor_receipt_tree" model="ir.actions.act_window.view">
439 <field eval="1" name="sequence"/>
440 <field name="view_mode">tree</field>
441 <field name="act_window_id" ref="action_vendor_receipt"/>
443 <record id="action_vendor_receipt_form" model="ir.actions.act_window.view">
444 <field eval="2" name="sequence"/>
445 <field name="view_mode">form</field>
446 <field name="view_id" ref="view_vendor_receipt_form"/>
447 <field name="act_window_id" ref="action_vendor_receipt"/>
450 <menuitem action="action_vendor_receipt" icon="STOCK_JUSTIFY_FILL" sequence="12"
451 id="menu_action_vendor_receipt" parent="account.menu_finance_receivables"/>