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 <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')]" help="To Review"/>
16 <separator orientation="vertical"/>
18 <field name="number"/>
19 <field name="partner_id" string="Customer"/>
23 <field name="journal_id" widget="selection" context="{'journal_id': self, 'set_visible':False}" domain="[('type','in',('bank','cash'))]"/>
24 <field name="period_id"/>
27 <group expand="0" string="Group By...">
28 <filter string="Customer" icon="terp-personal" domain="[]" context="{'group_by':'partner_id'}"/>
29 <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'journal_id'}"/>
30 <filter string="Period" icon="terp-go-month" domain="[]" context="{'group_by':'period_id','visible':True}"/>
31 <filter string="Status" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
38 <record id="view_voucher_filter_vendor_pay" model="ir.ui.view">
39 <field name="name">account.voucher.purchase.pay.select</field>
40 <field name="model">account.voucher</field>
41 <field name="type">search</field>
42 <field name="arch" type="xml">
43 <search string="Search Vouchers">
45 <filter icon="terp-document-new" string="Draft" domain="[('state','=','draft')]" help="Draft Vouchers"/>
46 <filter icon="terp-camera_test" string="Posted" domain="[('state','=','posted')]" help="Posted Vouchers"/>
47 <separator orientation="vertical"/>
48 <filter icon="terp-gtk-jump-to-ltr" string="To Review" domain="[('state','=','posted')]" help="To Review"/>
49 <separator orientation="vertical"/>
51 <field name="number"/>
52 <field name="partner_id" string="Supplier"/>
56 <field name="journal_id" widget="selection" context="{'journal_id': self, 'set_visible':False}" domain="[('type','in',('bank','cash'))]"/>
57 <field name="period_id"/>
60 <group expand="0" string="Group By...">
61 <filter string="Supplier" icon="terp-personal" domain="[]" context="{'group_by':'partner_id'}"/>
62 <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'journal_id'}"/>
63 <filter string="Period" icon="terp-go-month" domain="[]" context="{'group_by':'period_id','visible':True}"/>
64 <filter string="Status" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
69 <record model="ir.ui.view" id="view_low_priority_payment_form">
70 <field name="name">account.voucher.payment.low.priority.form</field>
71 <field name="model">account.voucher</field>
72 <field name="type">form</field>
73 <field name="priority">1</field>
74 <field name="arch" type="xml">
75 <form string="Bill Payment" version="7.0">
77 <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}" />
78 <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)"/>
79 <field name="journal_id"
80 domain="[('type','in',['bank', 'cash'])]"
82 on_change="onchange_journal(journal_id, line_dr_ids, False, partner_id, date, amount, type, company_id, context)"
83 string="Payment Method"/>
84 <field name="date" on_change="onchange_date(date, currency_id, payment_rate_currency_id, amount, company_id, context)"/>
85 <field name="reference" string="Payment Ref"/>
86 <field name="name" colspan="2"/>
87 <field name="account_id"
90 <field name="pre_line" invisible="1"/>
91 <field name="type" invisible="True"/>
94 <page string="Payment Information">
95 <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)">
96 <tree string="Open Supplier Journal Entries" editable="bottom" colors="gray:amount==0">
97 <field name="move_line_id" context="{'journal_id':parent.journal_id, 'partner_id':parent.partner_id}"
98 on_change="onchange_move_line_id(move_line_id)"
99 domain="[('account_id.type','=','payable'), ('reconcile_id','=', False), ('partner_id','=',parent.partner_id)]"
101 <field name="account_id" domain="[('type','=','payable')]"/>
102 <field name="date_original" readonly="1"/>
103 <field name="date_due" readonly="1"/>
104 <field name="amount_original" readonly="1"/>
105 <field name="amount_unreconciled" readonly="1"/>
106 <field name="amount" sum="Total Allocation"/>
109 <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)">
110 <tree string="Open Customer Journal Entries" editable="bottom" colors="gray:amount==0">
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" 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" readonly="1"/>
120 <field name="amount" sum="Total Allocation"/>
124 <group string="Internal Notes">
125 <field name="narration" nolabel="1" colspan="2"/>
127 <group string="Other Information" col="4">
128 <field name="currency_id" colspan="4"/>
129 <field name="payment_rate" required="1" on_change="onchange_rate(payment_rate, amount, currency_id, payment_rate_currency_id, company_id, context)" colspan="3"/>
130 <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)"/>
131 <field name="paid_amount_in_company_currency" colspan="4" invisible="1"/>
132 <field name="number" colspan="4"/>
141 <record model="ir.ui.view" id="view_vendor_payment_form">
142 <field name="name">account.voucher.payment.form</field>
143 <field name="model">account.voucher</field>
144 <field name="type">form</field>
145 <field name="arch" type="xml">
148 <button name="proforma_voucher" string="Validate" states="draft" invisible="context.get('line_type', False)"/>
149 <button name="cancel_voucher" string="Cancel" states="draft,proforma" invisible="context.get('line_type', False)"/>
150 <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 ?"/>
151 <button name="action_cancel_draft" type="object" states="cancel" string="Set to Draft" invisible="context.get('line_type', False)"/>
152 <field name="state" widget="statusbar" statusbar_visible="draft,posted" statusbar_colors='{"proforma":"blue"}'/>
154 <sheet string="Bill Payment">
156 <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"/>
157 <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)"/>
158 <field name="journal_id"
159 domain="[('type','in',['bank', 'cash'])]"
160 invisible="context.get('line_type', False)"
162 on_change="onchange_journal(journal_id, line_dr_ids, False, partner_id, date, amount, type, company_id, context)"
163 string="Payment Method"/>
164 <field name="date" invisible="context.get('line_type', False)" on_change="onchange_date(date, currency_id, payment_rate_currency_id, amount, company_id, context)"/>
165 <field name="reference" invisible="context.get('line_type', False)" string="Payment Ref" placeholder="003/10"/>
166 <field name="name" colspan="2" invisible="context.get('line_type', False)" placeholder="Invoice SAJ/0042"/>
167 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
168 <field name="account_id"
171 <field name="pre_line" invisible="1"/>
172 <field name="type" invisible="True"/>
173 <field name="currency_id" invisible="1" colspan="4"/>
176 <page string="Payment Information">
177 <field name="line_dr_ids" context="{'journal_id':journal_id, 'type':type, 'partner_id':partner_id}">
178 <tree string="Supplier Invoices and Outstanding transactions" editable="bottom" colors="gray:amount==0">
179 <field name="move_line_id" context="{'journal_id':parent.journal_id, 'partner_id':parent.partner_id}"
180 on_change="onchange_move_line_id(move_line_id)"
181 domain="[('account_id.type','=','payable'), ('reconcile_id','=', False), ('partner_id','=',parent.partner_id)]"
184 <field name="account_id" groups="base.group_no_one" domain="[('type','=','payable')]"/>
185 <field name="date_original" readonly="1"/>
186 <field name="date_due" readonly="1"/>
187 <field name="amount_original" readonly="1"/>
188 <field name="amount_unreconciled" readonly="1"/>
189 <field name="reconcile" on_change="onchange_reconcile(reconcile, amount, amount_unreconciled, context)"/>
190 <field name="amount" sum="Total Allocation" on_change="onchange_amount(amount, amount_unreconciled, context)"/>
193 <field name="line_cr_ids" attrs="{'invisible': [('pre_line','=',False)]}" context="{'journal_id':journal_id, 'partner_id':partner_id}">
194 <tree string="Credits" editable="bottom" colors="gray:amount==0">
195 <field name="move_line_id" context="{'journal_id':parent.journal_id, 'partner_id':parent.partner_id}"
196 on_change="onchange_move_line_id(move_line_id)"
197 domain="[('account_id.type','=','payable'), ('reconcile_id','=', False), ('partner_id','=',parent.partner_id)]"
200 <field name="account_id" groups="base.group_no_one" domain="[('type','=','payable')]"/>
201 <field name="date_original" readonly="1"/>
202 <field name="date_due" readonly="1"/>
203 <field name="amount_original" readonly="1"/>
204 <field name="amount_unreconciled" readonly="1"/>
205 <field name="reconcile" on_change="onchange_reconcile(reconcile, amount, amount_unreconciled, context)"/>
206 <field name="amount" sum="Total Allocation" on_change="onchange_amount(amount, amount_unreconciled, context)"/>
210 <group string="Internal Notes">
211 <field name="narration" colspan="2" nolabel="1"/>
214 <group col="4" attrs="{'invisible':[('currency_id','=',False),('is_multi_currency','=',False)]}">
215 <separator string="Currency Options" colspan="4"/>
216 <field name="is_multi_currency" invisible="1"/>
217 <field name="payment_rate" required="1" on_change="onchange_rate(payment_rate, amount, currency_id, payment_rate_currency_id, company_id, context)" colspan="3"/>
218 <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)"/>
219 <field name="paid_amount_in_company_currency" colspan="4" invisible="1"/>
222 <separator string="Payment Options" colspan="2"/>
223 <field name="writeoff_amount"/>
224 <field name="payment_option" required="1"/>
225 <field name="writeoff_acc_id"
226 attrs="{'invisible':[('payment_option','!=','with_writeoff')], 'required':[('payment_option','=','with_writeoff')]}"
227 domain="[('type','=','other')]"/>
228 <field name="comment"
229 attrs="{'invisible':[('payment_option','!=','with_writeoff')]}"/>
230 <field name="analytic_id"
231 groups="analytic.group_analytic_accounting"/>
236 <page string="Journal Items" attrs="{'invisible': [('state','!=','posted')]}">
238 <field name="period_id"/>
239 <field name="audit"/>
240 <field name="number"/>
242 <field name="move_ids" readonly="1">
243 <tree string="Journal Items">
244 <field name="move_id"/>
247 <field name="statement_id"/>
248 <field name="partner_id"/>
249 <field name="account_id"/>
251 <field name="debit"/>
252 <field name="credit"/>
253 <field name="state"/>
254 <field name="reconcile_id"/>
255 <field name="amount_currency"/>
256 <field name="currency_id"/>
266 <record id="action_vendor_payment" model="ir.actions.act_window">
267 <field name="name">Supplier Payment</field>
268 <field name="res_model">account.voucher</field>
269 <field name="view_type">form</field>
270 <field name="domain">[('journal_id.type', 'in', ['bank', 'cash']), ('type','=','payment')]</field>
271 <field name="context">{'type':'payment'}</field>
272 <field name="view_id" eval="False"/>
273 <field name="search_view_id" ref="view_voucher_filter_vendor_pay"/>
274 <field name="target">current</field>
275 <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>
277 <record id="action_vendor_payment_tree" model="ir.actions.act_window.view">
278 <field eval="1" name="sequence"/>
279 <field name="view_mode">tree</field>
280 <field name="act_window_id" ref="action_vendor_payment"/>
282 <record id="action_vendor_payment_form" model="ir.actions.act_window.view">
283 <field eval="2" name="sequence"/>
284 <field name="view_mode">form</field>
285 <field name="view_id" ref="view_vendor_payment_form"/>
286 <field name="act_window_id" ref="action_vendor_payment"/>
290 <menuitem action="action_vendor_payment" icon="STOCK_JUSTIFY_FILL" sequence="12"
291 id="menu_action_vendor_payment" parent="account.menu_finance_payables"/>
293 <record model="ir.ui.view" id="view_vendor_receipt_form">
294 <field name="name">account.voucher.receipt.form</field>
295 <field name="model">account.voucher</field>
296 <field name="type">form</field>
297 <field name="arch" type="xml">
300 <button name="proforma_voucher" string="Validate" states="draft" invisible="context.get('line_type', False)"/>
301 <button name="cancel_voucher" string="Cancel" states="draft,proforma" invisible="context.get('line_type', False)"/>
302 <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 ?"/>
303 <button name="action_cancel_draft" type="object" states="cancel" string="Set to Draft" invisible="context.get('line_type', False)"/>
304 <field name="state" widget="statusbar" statusbar_visible="draft,posted" statusbar_colors='{"proforma":"blue"}'/>
308 <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}"/>
309 <field name="currency_id" invisible="1"/>
311 invisible="context.get('line_type', False)"
313 on_change="onchange_amount(amount, payment_rate, partner_id, journal_id, currency_id, type, date, payment_rate_currency_id, company_id, context)"/>
314 <field name="journal_id"
315 domain="[('type','in',['bank', 'cash'])]"
316 invisible="context.get('line_type', False)"
318 on_change="onchange_journal(journal_id, line_cr_ids, False, partner_id, date, amount, type, company_id, context)"
319 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"/>
324 <field name="account_id"
327 <field name="pre_line" invisible="1"/>
328 <field name="type" invisible="True"/>
331 <page string="Payment Information">
332 <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)">
333 <tree string="Invoices and outstanding transactions" editable="bottom" colors="gray:amount==0">
334 <field name="move_line_id" context="{'journal_id':parent.journal_id, 'partner_id':parent.partner_id}"
335 on_change="onchange_move_line_id(move_line_id)"
336 domain="[('account_id.type','in',('receivable','payable')), ('reconcile_id','=', False), ('partner_id','=',parent.partner_id)]"
338 groups="account.group_account_user"/>
339 <field name="account_id" groups="base.group_no_one" domain="[('type','=','receivable')]"/>
340 <field name="date_original" readonly="1"/>
341 <field name="date_due" readonly="1"/>
342 <field name="amount_original" readonly="1"/>
343 <field name="amount_unreconciled" readonly="1" groups="account.group_account_user"/>
344 <field name="reconcile" on_change="onchange_reconcile(reconcile, amount, amount_unreconciled, context)" groups="account.group_account_user"/>
345 <field name="amount" sum="Total Allocation" on_change="onchange_amount(amount, amount_unreconciled, context)" string="Allocation"/>
348 <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)">
349 <tree string="Credits" editable="bottom" colors="gray:amount==0">
350 <field name="move_line_id" context="{'journal_id':parent.journal_id, 'partner_id':parent.partner_id}"
351 on_change="onchange_move_line_id(move_line_id)"
352 domain="[('account_id.type','in',('receivable','payable')), ('reconcile_id','=', False), ('partner_id','=',parent.partner_id)]"
355 <field name="account_id" groups="base.group_no_one" domain="[('type','=','receivable')]"/>
356 <field name="date_original" readonly="1"/>
357 <field name="date_due" readonly="1"/>
358 <field name="amount_original" readonly="1"/>
359 <field name="amount_unreconciled" readonly="1"/>
360 <field name="reconcile" on_change="onchange_reconcile(reconcile, amount, amount_unreconciled, context)"/>
361 <field name="amount" sum="Total Allocation" on_change="onchange_amount(amount, amount_unreconciled, context)" string="Allocation"/>
365 <group col="2" string="Internal Notes">
366 <field name="narration" colspan="2" nolabel="1"/>
368 <group col="4" attrs="{'invisible':[('currency_id','=',False),('is_multi_currency','=',False)]}">
369 <separator string="Currency Options" colspan="4"/>
370 <field name="is_multi_currency" invisible="1"/>
371 <field name="payment_rate" required="1" on_change="onchange_rate(payment_rate, amount, currency_id, payment_rate_currency_id, company_id, context)" colspan="3"/>
372 <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)"/>
373 <field name="paid_amount_in_company_currency" colspan="4" invisible="1"/>
376 <separator string="Payment Options" colspan="2"/>
377 <field name="writeoff_amount"/>
378 <field name="payment_option" required="1"/>
379 <field name="writeoff_acc_id"
380 attrs="{'invisible':[('payment_option','!=','with_writeoff')], 'required':[('payment_option','=','with_writeoff')]}"
381 domain="[('type','=','other')]"/>
382 <field name="comment"
383 attrs="{'invisible':[('payment_option','!=','with_writeoff')]}"/>
384 <field name="analytic_id"
385 groups="analytic.group_analytic_accounting"/>
389 <page string="Journal Items" attrs="{'invisible': [('state','!=','posted')]}">
391 <field name="period_id"/>
392 <field name="audit"/>
393 <field name="number"/>
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"/>
419 <record id="action_vendor_receipt" model="ir.actions.act_window">
420 <field name="name">Customer Payment</field>
421 <field name="res_model">account.voucher</field>
422 <field name="view_type">form</field>
423 <field name="domain">[('journal_id.type', 'in', ['bank', 'cash']), ('type','=','receipt')]</field>
424 <field name="context">{'type':'receipt'}</field>
425 <field name="search_view_id" ref="view_voucher_filter_customer_pay"/>
426 <field name="view_id" eval="False"/>
427 <field name="target">current</field>
428 <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>
430 <record id="action_vendor_receipt_tree" model="ir.actions.act_window.view">
431 <field eval="1" name="sequence"/>
432 <field name="view_mode">tree</field>
433 <field name="act_window_id" ref="action_vendor_receipt"/>
435 <record id="action_vendor_receipt_form" model="ir.actions.act_window.view">
436 <field eval="2" name="sequence"/>
437 <field name="view_mode">form</field>
438 <field name="view_id" ref="view_vendor_receipt_form"/>
439 <field name="act_window_id" ref="action_vendor_receipt"/>
442 <menuitem action="action_vendor_receipt" icon="STOCK_JUSTIFY_FILL" sequence="12"
443 id="menu_action_vendor_receipt" parent="account.menu_finance_receivables"/>