[MERGE] latest trunk
[odoo/odoo.git] / addons / account_voucher / voucher_payment_receipt_view.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <openerp>
3     <data>
4
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"/>
11                     <field name="date"/>
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'}"/>
22                     </group>
23                 </search>
24             </field>
25         </record>
26
27
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"/>
34                     <field name="date"/>
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'}"/>
45                     </group>
46                 </search>
47             </field>
48         </record>
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">
55                     <group col="6">
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'])]"
60                             widget="selection"
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"
67                             widget="selection"
68                             invisible="True"/>
69                         <field name="pre_line" invisible="1"/>
70                         <field name="type" invisible="True"/>
71                     </group>
72                     <notebook>
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"/>
85                                 </tree>
86                             </field>
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"/>
98                                 </tree>
99                             </field>
100                             <group>
101                                 <group string="Internal Notes">
102                                     <field name="narration" nolabel="1" colspan="2"/>
103                                 </group>
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"/>
110                                 </group>
111                             </group>
112                         </page>
113                     </notebook>
114                 </form>
115             </field>
116         </record>
117
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">
123                 <header>
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"}'/>
129                 </header>
130                 <sheet>
131                     <field name="account_id" invisible="True"/>
132                     <field name="pre_line" invisible="1"/>
133                     <field name="type" invisible="True"/>
134                     <group>
135                         <group>
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"/>
138                             <div>
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"/>
141                             </div>
142                             <field name="journal_id"
143                                 domain="[('type','in',['bank', 'cash'])]"
144                                 invisible="context.get('line_type', False)"
145                                 widget="selection"
146                                 on_change="onchange_journal(journal_id, line_dr_ids, False, partner_id, date, amount, type, company_id, context)"
147                                 string="Payment Method"/>
148                         </group>
149                         <group>
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"/>
154                         </group>
155                     </group>
156                     <notebook>
157                         <page string="Payment Information">
158                             <field name="line_dr_ids" 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)]"
163                                         required="1"/>
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)"/>
171                                 </tree>
172                             </field>
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)]"
178                                         required="1"/>
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)"/>
186                                 </tree>
187                             </field>
188                             <group>
189                                 <group string="Internal Notes">
190                                     <field name="narration" colspan="2" nolabel="1"/>
191                                 </group>
192                                 <group>
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"/>
199                                     </group>
200                                     <group col="2">
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"/>
211                                     </group>
212                                 </group>
213                             </group>
214                         </page>
215                         <page string="Journal Items" attrs="{'invisible': [('state','!=','posted')]}">
216                             <group col="4">
217                                 <field name="period_id"/>
218                                 <field name="audit"/>
219                                 <field name="number"/>
220                             </group>
221                             <field name="move_ids" readonly="1">
222                                <tree string="Journal Items">
223                                    <field name="move_id"/>
224                                    <field name="ref"/>
225                                    <field name="date"/>
226                                    <field name="statement_id"/>
227                                    <field name="partner_id"/>
228                                    <field name="account_id"/>
229                                    <field name="name"/>
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"/>
236                                </tree>
237                             </field>
238                         </page>
239                     </notebook>
240                     </sheet>
241                     <div class="oe_chatter">
242                         <field name="message_is_follower" invisible="1"/>
243                         <field name="message_ids" widget="mail_thread"/>
244                         <field name="message_follower_ids" widget="mail_followers"/>
245                     </div>
246                 </form>
247             </field>
248         </record>
249
250         <record id="action_vendor_payment" model="ir.actions.act_window">
251             <field name="name">Supplier Payment</field>
252             <field name="res_model">account.voucher</field>
253             <field name="view_type">form</field>
254             <field name="domain">[('journal_id.type', 'in', ['bank', 'cash']), ('type','=','payment')]</field>
255             <field name="context">{'type':'payment'}</field>
256             <field name="view_id" eval="False"/>
257             <field name="search_view_id" ref="view_voucher_filter_vendor_pay"/>
258             <field name="target">current</field>
259             <field name="help" type="html">
260               <p class="oe_view_nocontent_create">
261                 Click to create a new supplier payment.
262               </p><p>
263                 OpenERP helps you easily track payments you do and remining
264                 balance to pay to your supplier.
265               </p>
266             </field>
267         </record>
268         <record id="action_vendor_payment_tree" model="ir.actions.act_window.view">
269             <field eval="1" name="sequence"/>
270             <field name="view_mode">tree</field>
271             <field name="act_window_id" ref="action_vendor_payment"/>
272         </record>
273         <record id="action_vendor_payment_form" model="ir.actions.act_window.view">
274             <field eval="2" name="sequence"/>
275             <field name="view_mode">form</field>
276             <field name="view_id" ref="view_vendor_payment_form"/>
277             <field name="act_window_id" ref="action_vendor_payment"/>
278         </record>
279
280
281         <menuitem action="action_vendor_payment" icon="STOCK_JUSTIFY_FILL" sequence="12"
282             id="menu_action_vendor_payment"  parent="account.menu_finance_payables"/>
283
284         <record model="ir.ui.view" id="view_vendor_receipt_form">
285             <field name="name">account.voucher.receipt.form</field>
286             <field name="model">account.voucher</field>
287             <field name="arch" type="xml">
288                 <form string="Receipt" version="7.0">
289                 <header>
290                     <button name="proforma_voucher" string="Validate" states="draft" invisible="context.get('line_type', False)" class="oe_highlight"/>
291                     <button name="cancel_voucher" string="Cancel" states="draft,proforma"  invisible="context.get('line_type', False)"/>
292                     <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 ?"/>
293                     <button name="action_cancel_draft" type="object" states="cancel" string="Set to Draft" invisible="context.get('line_type', False)"/>
294                     <field name="state" widget="statusbar" statusbar_visible="draft,posted" statusbar_colors='{"proforma":"blue"}'/>
295                 </header>
296                 <sheet>
297                     <h1><field name="number"/></h1>
298                     <group>
299                         <group>
300                             <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}"/>
301                             <label for="amount" string="Paid Amount"/>
302                             <div>
303                                 <field name="amount" class="oe_inline"
304                                     invisible="context.get('line_type', False)"
305                                     on_change="onchange_amount(amount, payment_rate, partner_id, journal_id, currency_id, type, date, payment_rate_currency_id, company_id, context)"/>
306                                 <field name="currency_id" class="oe_inline"/>
307                             </div>
308
309                             <field name="journal_id"
310                                 domain="[('type','in',['bank', 'cash'])]"
311                                 invisible="context.get('line_type', False)"
312                                 widget="selection"
313                                 on_change="onchange_journal(journal_id, line_cr_ids, False, partner_id, date, amount, type, company_id, context)"
314                                 string="Payment Method"/>
315                         </group>
316                         <group>
317                             <field name="date" invisible="context.get('line_type', False)" on_change="onchange_date(date, currency_id, payment_rate_currency_id, amount, company_id, context)"/>
318                             <field name="reference" invisible="context.get('line_type', False)" string="Payment Ref" placeholder="e.g. 003/10"/>
319                             <field name="name" colspan="2" invisible="context.get('line_type', False)" placeholder="e.g. Invoice SAJ/0042"/>
320                             <field name="company_id" widget="selection" groups="base.group_multi_company"/>
321
322                             <field name="account_id"
323                                 widget="selection"
324                                 invisible="True"/>
325                             <field name="pre_line" invisible="1"/>
326                             <field name="type" invisible="True"/>
327                         </group>
328                     </group>
329
330                     <notebook>
331                         <page string="Payment Information" groups="base.group_user">
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, type, 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)]"
337                                         required="1"
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"/>
346                                 </tree>
347                             </field>
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, type, 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)]"
353                                         required="1"/>
354                                     <field name="account_id"  groups="base.group_no_one" domain="[('type','=','receivable')]"/>
355                                     <field name="date_original" readonly="1"/>
356                                     <field name="date_due" readonly="1"/>
357                                     <field name="amount_original" readonly="1"/>
358                                     <field name="amount_unreconciled" readonly="1"/>
359                                     <field name="reconcile" on_change="onchange_reconcile(reconcile, amount, amount_unreconciled, context)"/>
360                                     <field name="amount" sum="Total Allocation" on_change="onchange_amount(amount, amount_unreconciled, context)" string="Allocation"/>
361                                 </tree>
362                             </field>
363                             <group col="3">
364                                 <group>
365                                     <field name="narration" colspan="2" nolabel="1"/>
366                                 </group>
367                                 <group col="4" attrs="{'invisible':[('currency_id','=',False),('is_multi_currency','=',False)]}">
368                                     <field name="is_multi_currency" invisible="1"/>
369                                     <field name="payment_rate" required="1" on_change="onchange_rate(payment_rate, amount, currency_id, payment_rate_currency_id, company_id, context)" colspan="3"/>
370                                     <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"/>
371                                     <field name="paid_amount_in_company_currency" colspan="4" invisible="1"/>
372                                 </group>
373                                 <group>
374                                     <field name="writeoff_amount"/>
375                                     <field name="payment_option" required="1"/>
376                                     <field name="writeoff_acc_id"
377                                            attrs="{'invisible':[('payment_option','!=','with_writeoff')], 'required':[('payment_option','=','with_writeoff')]}"
378                                            domain="[('type','=','other')]"/>
379                                     <field name="comment"
380                                            attrs="{'invisible':[('payment_option','!=','with_writeoff')]}"/>
381                                     <field name="analytic_id"
382                                            groups="analytic.group_analytic_accounting"/>
383                                 </group>
384                             </group>
385                         </page>
386                         <page string="Journal Items" attrs="{'invisible': [('state','!=','posted')]}">
387                             <group col="4">
388                                 <field name="period_id"/>
389                                 <field name="audit"/>
390                             </group>
391                             <field name="move_ids" readonly="1">
392                                 <tree string="Journal Items">
393                                     <field name="move_id"/>
394                                     <field name="ref"/>
395                                     <field name="date"/>
396                                     <field name="statement_id"/>
397                                     <field name="partner_id"/>
398                                     <field name="account_id"/>
399                                     <field name="name"/>
400                                     <field name="debit"/>
401                                     <field name="credit"/>
402                                     <field name="state"/>
403                                     <field name="reconcile_id"/>
404                                     <field name="amount_currency"/>
405                                     <field name="currency_id" groups="base.group_multi_currency"/>
406                                 </tree>
407                             </field>
408                         </page>
409                     </notebook>
410                     </sheet>
411                     <div class="oe_chatter">
412                         <field name="message_is_follower" invisible="1"/>
413                         <field name="message_ids" widget="mail_thread"/>
414                         <field name="message_follower_ids" widget="mail_followers"/>
415                     </div>
416                 </form>
417             </field>
418         </record>
419
420         <record id="action_vendor_receipt" model="ir.actions.act_window">
421             <field name="name">Customer Payment</field>
422             <field name="res_model">account.voucher</field>
423             <field name="view_type">form</field>
424             <field name="domain">[('journal_id.type', 'in', ['bank', 'cash']), ('type','=','receipt')]</field>
425             <field name="context">{'type':'receipt'}</field>
426             <field name="search_view_id" ref="view_voucher_filter_customer_pay"/>
427             <field name="view_id" eval="False"/>
428             <field name="target">current</field>
429             <field name="help" type="html">
430               <p class="oe_view_nocontent_create">
431                 Click to register a new payment. 
432               </p><p>
433                 Enter the customer and the payment method and then, either
434                 create manually a payment record or OpenERP will propose to you
435                 automatically the reconciliation of this payment with the open
436                 invoices or sales receipts.
437               </p>
438             </field>
439         </record>
440         <record id="action_vendor_receipt_tree" model="ir.actions.act_window.view">
441             <field eval="1" name="sequence"/>
442             <field name="view_mode">tree</field>
443             <field name="act_window_id" ref="action_vendor_receipt"/>
444         </record>
445         <record id="action_vendor_receipt_form" model="ir.actions.act_window.view">
446             <field eval="2" name="sequence"/>
447             <field name="view_mode">form</field>
448             <field name="view_id" ref="view_vendor_receipt_form"/>
449             <field name="act_window_id" ref="action_vendor_receipt"/>
450         </record>
451
452         <menuitem action="action_vendor_receipt" icon="STOCK_JUSTIFY_FILL" sequence="12"
453             id="menu_action_vendor_receipt"  parent="account.menu_finance_receivables"/>
454
455     </data>
456 </openerp>