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')]" groups="base.group_extended" 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" groups="base.group_extended"/>
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="State" 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')]" groups="base.group_extended" 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" groups="base.group_extended"/>
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="State" 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">
76 <group col="6" colspan="4">
77 <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"/>
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'])]"
81 widget="selection" select="1"
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" select="1" on_change="onchange_date(date, currency_id, payment_rate_currency_id, amount, company_id, context)"/>
85 <field name="reference" select="1" 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"/>
93 <notebook colspan="4">
94 <page string="Payment Information">
95 <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, 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" groups="base.group_extended" 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" 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, 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" 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" readonly="1"/>
120 <field name="amount" sum="Total Allocation"/>
123 <group col="2" colspan="3">
124 <separator string="Internal Notes" colspan="2"/>
125 <field name="narration" colspan="2" nolabel="1"/>
127 <group col="4" colspan="1">
128 <separator string="Other Information" colspan="4"/>
129 <field name="currency_id" colspan="4"/>
130 <field name="payment_rate" required="1" on_change="onchange_rate(payment_rate, amount, currency_id, payment_rate_currency_id, company_id, context)" groups='base.group_extended' colspan="3"/>
131 <field name="payment_rate_currency_id" groups='base.group_extended' colspan="1" nolabel="1" on_change="onchange_payment_rate_currency(currency_id, payment_rate, payment_rate_currency_id, date, amount, company_id, context)"/>
132 <field name="paid_amount_in_company_currency" groups='base.group_extended' colspan="4" invisible="1"/>
133 <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">
146 <form string="Bill Payment">
147 <group col="6" colspan="4">
148 <field name="partner_id" domain="[('supplier','=',True)]" 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}" string="Supplier"/>
149 <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)"/>
150 <field name="journal_id"
151 domain="[('type','in',['bank', 'cash'])]"
152 invisible="context.get('line_type', False)"
153 widget="selection" select="1"
154 on_change="onchange_journal(journal_id, line_dr_ids, False, partner_id, date, amount, type, company_id, context)"
155 string="Payment Method"/>
156 <field name="date" select="1" 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" select="1" invisible="context.get('line_type', False)" string="Payment Ref"/>
158 <field name="name" colspan="2" invisible="context.get('line_type', False)"/>
159 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
160 <field name="account_id"
163 <field name="pre_line" invisible="1"/>
164 <field name="type" invisible="True"/>
165 <field name="currency_id" invisible="1" colspan="4"/>
167 <notebook colspan="4">
168 <page string="Payment Information">
169 <field name="line_dr_ids" default_get="{'journal_id':journal_id, 'type':type, 'partner_id':partner_id}" colspan="4" nolabel="1" height="140">
170 <tree string="Supplier Invoices and Outstanding transactions" editable="bottom" colors="gray:amount==0">
171 <field name="move_line_id" context="{'journal_id':parent.journal_id, 'partner_id':parent.partner_id}"
172 on_change="onchange_move_line_id(move_line_id)"
173 domain="[('account_id.type','=','payable'), ('reconcile_id','=', False), ('partner_id','=',parent.partner_id)]"
176 <field name="account_id" groups="base.group_no_one" domain="[('type','=','payable')]"/>
177 <field name="date_original" readonly="1"/>
178 <field name="date_due" readonly="1"/>
179 <field name="amount_original" readonly="1"/>
180 <field name="amount_unreconciled" readonly="1"/>
181 <field name="reconcile" on_change="onchange_reconcile(reconcile, amount, amount_unreconciled, context)"/>
182 <field name="amount" sum="Total Allocation" on_change="onchange_amount(amount, amount_unreconciled, context)"/>
185 <field name="line_cr_ids" colspan="4" nolabel="1" attrs="{'invisible': [('pre_line','=',False)]}" default_get="{'journal_id':journal_id, 'partner_id':partner_id}">
186 <tree string="Credits" editable="bottom" colors="gray:amount==0">
187 <field name="move_line_id" context="{'journal_id':parent.journal_id, 'partner_id':parent.partner_id}"
188 on_change="onchange_move_line_id(move_line_id)"
189 domain="[('account_id.type','=','payable'), ('reconcile_id','=', False), ('partner_id','=',parent.partner_id)]"
192 <field name="account_id" groups="base.group_no_one" domain="[('type','=','payable')]"/>
193 <field name="date_original" readonly="1"/>
194 <field name="date_due" readonly="1"/>
195 <field name="amount_original" readonly="1"/>
196 <field name="amount_unreconciled" readonly="1"/>
197 <field name="reconcile" on_change="onchange_reconcile(reconcile, amount, amount_unreconciled, context)"/>
198 <field name="amount" sum="Total Allocation" on_change="onchange_amount(amount, amount_unreconciled, context)"/>
201 <group col="2" colspan="3">
202 <separator string="Internal Notes" colspan="2"/>
203 <field name="narration" colspan="2" nolabel="1"/>
205 <group col="2" colspan="1">
206 <group col="4" colspan="1" attrs="{'invisible':[('currency_id','=',False),('is_multi_currency','=',False)]}">
207 <separator string="Currency Options" colspan="4"/>
208 <field name="payment_rate" required="1" on_change="onchange_rate(payment_rate, amount, currency_id, payment_rate_currency_id, company_id, context)" groups='base.group_extended' colspan="3"/>
209 <field name="payment_rate_currency_id" groups='base.group_extended' colspan="1" nolabel="1" on_change="onchange_payment_rate_currency(currency_id, payment_rate, payment_rate_currency_id, date, amount, company_id, context)"/>
210 <field name="paid_amount_in_company_currency" groups='base.group_extended' colspan="4" invisible="1"/>
212 <group col="2" colspan="1">
213 <separator string="Payment Options" colspan="2"/>
214 <field name="writeoff_amount"/>
215 <field name="payment_option" required="1"/>
216 <field name="writeoff_acc_id"
217 attrs="{'invisible':[('payment_option','!=','with_writeoff')], 'required':[('payment_option','=','with_writeoff')]}"
218 domain="[('type','=','other')]"/>
219 <field name="comment"
220 attrs="{'invisible':[('payment_option','!=','with_writeoff')]}"/>
221 <field name="analytic_id"
222 groups="analytic.group_analytic_accounting"/>
226 <page string="Journal Items" groups="base.group_extended" attrs="{'invisible': [('state','!=','posted')]}">
227 <group col="6" colspan="4">
228 <field name="period_id"/>
229 <field name="audit"/>
231 <field name="number" colspan="4"/>
232 <field name="move_ids" colspan="4" nolabel="1" readonly="1">
233 <tree string="Journal Items">
234 <field name="move_id"/>
237 <field name="statement_id"/>
238 <field name="partner_id"/>
239 <field name="account_id"/>
241 <field name="debit"/>
242 <field name="credit"/>
243 <field name="state"/>
244 <field name="reconcile_id"/>
245 <field name="amount_currency"/>
246 <field name="currency_id"/>
251 <group col="10" colspan="4">
252 <field name="state" widget="statusbar" statusbar_visible="draft,posted" statusbar_colors='{"proforma":"blue"}'/>
253 <button name="cancel_voucher" string="Cancel" states="draft,proforma" icon="gtk-cancel" invisible="context.get('line_type', False)"/>
254 <button name="cancel_voucher" string="Unreconcile" type="object" states="posted" icon="terp-stock_effects-object-colorize" invisible="context.get('line_type', False)" confirm="Are you sure to unreconcile and cancel this record ?"/>
255 <button name="action_cancel_draft" type="object" states="cancel" string="Set to Draft" icon="terp-stock_effects-object-colorize" invisible="context.get('line_type', False)"/>
256 <button name="proforma_voucher" string="Validate" states="draft" icon="gtk-go-forward" invisible="context.get('line_type', False)"/>
262 <record id="action_vendor_payment" model="ir.actions.act_window">
263 <field name="name">Supplier Payment</field>
264 <field name="res_model">account.voucher</field>
265 <field name="view_type">form</field>
266 <field name="domain">[('journal_id.type', 'in', ['bank', 'cash']), ('type','=','payment')]</field>
267 <field name="context">{'type':'payment'}</field>
268 <field name="view_id" eval="False"/>
269 <field name="search_view_id" ref="view_voucher_filter_vendor_pay"/>
270 <field name="target">current</field>
271 <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>
273 <record id="action_vendor_payment_tree" model="ir.actions.act_window.view">
274 <field eval="1" name="sequence"/>
275 <field name="view_mode">tree</field>
276 <field name="act_window_id" ref="action_vendor_payment"/>
278 <record id="action_vendor_payment_form" model="ir.actions.act_window.view">
279 <field eval="2" name="sequence"/>
280 <field name="view_mode">form</field>
281 <field name="view_id" ref="view_vendor_payment_form"/>
282 <field name="act_window_id" ref="action_vendor_payment"/>
286 <menuitem action="action_vendor_payment" icon="STOCK_JUSTIFY_FILL" sequence="12"
287 id="menu_action_vendor_payment" parent="account.menu_finance_payables"/>
289 <record model="ir.ui.view" id="view_vendor_receipt_form">
290 <field name="name">account.voucher.receipt.form</field>
291 <field name="model">account.voucher</field>
292 <field name="type">form</field>
293 <field name="arch" type="xml">
294 <form string="Customer Payment">
295 <group col="6" colspan="4">
296 <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)" string="Customer"/>
297 <field name="currency_id" invisible="1"/>
299 invisible="context.get('line_type', False)"
301 on_change="onchange_amount(amount, payment_rate, partner_id, journal_id, currency_id, type, date, payment_rate_currency_id, company_id, context)"/>
302 <field name="journal_id"
303 domain="[('type','in',['bank', 'cash'])]"
304 invisible="context.get('line_type', False)"
305 widget="selection" select="1"
306 on_change="onchange_journal(journal_id, line_cr_ids, False, partner_id, date, amount, type, company_id, context)"
307 string="Payment Method"/>
308 <field name="date" select="1" invisible="context.get('line_type', False)" on_change="onchange_date(date, currency_id, payment_rate_currency_id, amount, company_id, context)"/>
309 <field name="reference" select="1" invisible="context.get('line_type', False)" string="Payment Ref"/>
310 <field name="name" colspan="2" invisible="context.get('line_type', False)"/>
311 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
312 <field name="account_id"
315 <field name="pre_line" invisible="1"/>
316 <field name="type" invisible="True"/>
318 <notebook colspan="4">
319 <page string="Payment Information">
320 <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, currency_id, context)">
321 <tree string="Invoices and outstanding transactions" editable="bottom" colors="gray:amount==0">
322 <field name="move_line_id" context="{'journal_id':parent.journal_id, 'partner_id':parent.partner_id}"
323 on_change="onchange_move_line_id(move_line_id)"
324 domain="[('account_id.type','in',('receivable','payable')), ('reconcile_id','=', False), ('partner_id','=',parent.partner_id)]"
327 <field name="account_id" groups="base.group_no_one" domain="[('type','=','receivable')]"/>
328 <field name="date_original" readonly="1"/>
329 <field name="date_due" readonly="1"/>
330 <field name="amount_original" readonly="1"/>
331 <field name="amount_unreconciled" readonly="1"/>
332 <field name="reconcile" on_change="onchange_reconcile(reconcile, amount, amount_unreconciled, context)"/>
333 <field name="amount" sum="Total Allocation" on_change="onchange_amount(amount, amount_unreconciled, context)"/>
336 <field name="line_dr_ids" colspan="4" nolabel="1" attrs="{'invisible': [('pre_line','=',False)]}" default_get="{'journal_id':journal_id, 'partner_id':partner_id}" on_change="onchange_line_ids(line_dr_ids, line_cr_ids, amount, currency_id, context)">
337 <tree string="Credits" editable="bottom" colors="gray:amount==0">
338 <field name="move_line_id" context="{'journal_id':parent.journal_id, 'partner_id':parent.partner_id}"
339 on_change="onchange_move_line_id(move_line_id)"
340 domain="[('account_id.type','in',('receivable','payable')), ('reconcile_id','=', False), ('partner_id','=',parent.partner_id)]"
343 <field name="account_id" groups="base.group_no_one" domain="[('type','=','receivable')]"/>
344 <field name="date_original" readonly="1"/>
345 <field name="date_due" readonly="1"/>
346 <field name="amount_original" readonly="1"/>
347 <field name="amount_unreconciled" readonly="1"/>
348 <field name="reconcile" on_change="onchange_reconcile(reconcile, amount, amount_unreconciled, context)"/>
349 <field name="amount" sum="Total Allocation" on_change="onchange_amount(amount, amount_unreconciled, context)"/>
352 <group col="2" colspan="3">
353 <separator string="Internal Notes" colspan="2"/>
354 <field name="narration" colspan="2" nolabel="1"/>
356 <group col="2" colspan="1">
357 <group col="4" colspan="1" attrs="{'invisible':[('currency_id','=',False),('is_multi_currency','=',False)]}">
358 <separator string="Currency Options" colspan="4"/>
359 <field name="payment_rate" required="1" on_change="onchange_rate(payment_rate, amount, currency_id, payment_rate_currency_id, company_id, context)" groups='base.group_extended' colspan="3"/>
360 <field name="payment_rate_currency_id" groups='base.group_extended' colspan="1" nolabel="1" on_change="onchange_payment_rate_currency(currency_id, payment_rate, payment_rate_currency_id, date, amount, company_id, context)"/>
361 <field name="paid_amount_in_company_currency" groups='base.group_extended' colspan="4" invisible="1"/>
363 <group col="2" colspan="1">
364 <separator string="Payment Options" colspan="2"/>
365 <field name="writeoff_amount"/>
366 <field name="payment_option" required="1"/>
367 <field name="writeoff_acc_id"
368 attrs="{'invisible':[('payment_option','!=','with_writeoff')], 'required':[('payment_option','=','with_writeoff')]}"
369 domain="[('type','=','other')]"/>
370 <field name="comment"
371 attrs="{'invisible':[('payment_option','!=','with_writeoff')]}"/>
372 <field name="analytic_id"
373 groups="analytic.group_analytic_accounting"/>
377 <page string="Journal Items" groups="base.group_extended" attrs="{'invisible': [('state','!=','posted')]}">
378 <group col="6" colspan="4">
379 <field name="period_id"/>
380 <field name="audit"/>
382 <field name="number" colspan="4"/>
383 <field name="move_ids" colspan="4" nolabel="1" readonly="1">
384 <tree string="Journal Items">
385 <field name="move_id"/>
388 <field name="statement_id"/>
389 <field name="partner_id"/>
390 <field name="account_id"/>
392 <field name="debit"/>
393 <field name="credit"/>
394 <field name="state"/>
395 <field name="reconcile_id"/>
396 <field name="amount_currency"/>
397 <field name="currency_id"/>
402 <group col="10" colspan="4">
403 <field name="state" widget="statusbar" statusbar_visible="draft,posted" statusbar_colors='{"proforma":"blue"}'/>
404 <button name="cancel_voucher" string="Cancel" states="draft,proforma" icon="gtk-cancel" invisible="context.get('line_type', False)"/>
405 <button name="cancel_voucher" string="Unreconcile" type="object" states="posted" invisible="context.get('line_type', False)" icon="terp-stock_effects-object-colorize" confirm="Are you sure to unreconcile and cancel this record ?"/>
406 <button name="action_cancel_draft" type="object" states="cancel" string="Set to Draft" icon="terp-stock_effects-object-colorize" invisible="context.get('line_type', False)"/>
407 <button name="proforma_voucher" string="Validate" states="draft" icon="gtk-go-forward" invisible="context.get('line_type', False)"/>
413 <record id="action_vendor_receipt" model="ir.actions.act_window">
414 <field name="name">Customer Payment</field>
415 <field name="res_model">account.voucher</field>
416 <field name="view_type">form</field>
417 <field name="domain">[('journal_id.type', 'in', ['bank', 'cash']), ('type','=','receipt')]</field>
418 <field name="context">{'type':'receipt'}</field>
419 <field name="search_view_id" ref="view_voucher_filter_customer_pay"/>
420 <field name="view_id" eval="False"/>
421 <field name="target">current</field>
422 <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>
424 <record id="action_vendor_receipt_tree" model="ir.actions.act_window.view">
425 <field eval="1" name="sequence"/>
426 <field name="view_mode">tree</field>
427 <field name="act_window_id" ref="action_vendor_receipt"/>
429 <record id="action_vendor_receipt_form" model="ir.actions.act_window.view">
430 <field eval="2" name="sequence"/>
431 <field name="view_mode">form</field>
432 <field name="view_id" ref="view_vendor_receipt_form"/>
433 <field name="act_window_id" ref="action_vendor_receipt"/>
436 <menuitem action="action_vendor_receipt" icon="STOCK_JUSTIFY_FILL" sequence="12"
437 id="menu_action_vendor_receipt" parent="account.menu_finance_receivables"/>