[IMP]Improve search view in all modules
[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="type">search</field>
9             <field name="arch" type="xml">
10                 <search string="Search Vouchers">
11                     <field name="number" string="Voucher"/>
12                     <field name="date"/>
13                     <filter icon="terp-document-new" string="Draft" domain="[('state','=','draft')]" help="Draft Vouchers"/>
14                     <filter icon="terp-camera_test" string="Posted" domain="[('state','=','posted')]" help="Posted Vouchers"/>
15                     <field name="partner_id" string="Customer"/>
16                     <field name="journal_id" context="{'journal_id': self, 'set_visible':False}" domain="[('type','in',('bank','cash'))]"/>
17                     <field name="period_id"/>
18                     <group expand="0" string="Group By...">
19                         <filter string="Customer" icon="terp-personal" domain="[]" context="{'group_by':'partner_id'}"/>
20                         <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'journal_id'}"/>
21                         <filter string="Period" icon="terp-go-month" domain="[]" context="{'group_by':'period_id','visible':True}"/>
22                         <filter string="Status" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
23                     </group>
24                 </search>
25             </field>
26         </record>
27
28
29         <record id="view_voucher_filter_vendor_pay" model="ir.ui.view">
30             <field name="name">account.voucher.purchase.pay.select</field>
31             <field name="model">account.voucher</field>
32             <field name="type">search</field>
33             <field name="arch" type="xml">
34                 <search string="Search Vouchers">
35                     <field name="number" string="Voucher"/>
36                     <field name="date"/>
37                     <filter icon="terp-document-new" string="Draft" domain="[('state','=','draft')]" help="Draft Vouchers"/>
38                     <filter icon="terp-camera_test" string="Posted" domain="[('state','=','posted')]" help="Posted Vouchers"/>
39                     <field name="partner_id" string="Supplier"/>
40                     <field name="journal_id" context="{'journal_id': self, 'set_visible':False}" domain="[('type','in',('bank','cash'))]"/>
41                     <field name="period_id"/>
42                     <group expand="0" string="Group By...">
43                         <filter string="Supplier" icon="terp-personal" domain="[]" context="{'group_by':'partner_id'}"/>
44                         <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'journal_id'}"/>
45                         <filter string="Period" icon="terp-go-month" domain="[]" context="{'group_by':'period_id','visible':True}"/>
46                         <filter string="Status" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
47                     </group>
48                 </search>
49             </field>
50         </record>
51         <record model="ir.ui.view" id="view_low_priority_payment_form">
52             <field name="name">account.voucher.payment.low.priority.form</field>
53             <field name="model">account.voucher</field>
54             <field name="type">form</field>
55             <field name="priority">1</field>
56             <field name="arch" type="xml">
57                 <form string="Bill Payment" version="7.0">
58                     <group col="6">
59                         <field name="partner_id" required="1" on_change="onchange_partner_id(partner_id, journal_id, amount, currency_id, type, date, context)" string="Supplier" context="{'default_customer': 0, 'search_default_supplier': 1, 'default_supplier': 1, 'invoice_currency': currency_id}" />
60                         <field name="amount" on_change="onchange_amount(amount, payment_rate, partner_id, journal_id, currency_id, type, date, payment_rate_currency_id, company_id, context)"/>
61                         <field name="journal_id"
62                             domain="[('type','in',['bank', 'cash'])]"
63                             widget="selection"
64                             on_change="onchange_journal(journal_id, line_dr_ids, False, partner_id, date, amount, type, company_id, context)"
65                             string="Payment Method"/>
66                         <field name="date" on_change="onchange_date(date, currency_id, payment_rate_currency_id, amount, company_id, context)"/>
67                         <field name="reference" string="Payment Ref"/>
68                         <field name="name" colspan="2"/>
69                         <field name="account_id"
70                             widget="selection"
71                             invisible="True"/>
72                         <field name="pre_line" invisible="1"/>
73                         <field name="type" invisible="True"/>
74                     </group>
75                     <notebook>
76                         <page string="Payment Information">
77                             <field name="line_dr_ids" attrs="{'invisible': [('type', '=', 'receipt')]}" context="{'journal_id':journal_id, 'type':type, 'partner_id':partner_id}" colspan="4" nolabel="1" height="140" on_change="onchange_line_ids(line_dr_ids, line_cr_ids, amount, currency_id, context)">
78                                 <tree string="Open Supplier Journal Entries" editable="bottom" colors="gray:amount==0">
79                                     <field name="move_line_id" context="{'journal_id':parent.journal_id, 'partner_id':parent.partner_id}"
80                                         on_change="onchange_move_line_id(move_line_id)"
81                                         domain="[('account_id.type','=','payable'), ('reconcile_id','=', False), ('partner_id','=',parent.partner_id)]"
82                                         />
83                                     <field name="account_id" domain="[('type','=','payable')]"/>
84                                     <field name="date_original" readonly="1"/>
85                                     <field name="date_due" readonly="1"/>
86                                     <field name="amount_original" readonly="1"/>
87                                     <field name="amount_unreconciled" readonly="1"/>
88                                     <field name="amount" sum="Total Allocation"/>
89                                 </tree>
90                             </field>
91                             <field name="line_cr_ids" attrs="{'invisible': [('type', '=', 'payment')]}" context="{'journal_id':journal_id, 'partner_id':partner_id}" on_change="onchange_line_ids(line_dr_ids, line_cr_ids, amount, currency_id, context)">
92                                 <tree string="Open Customer Journal Entries" editable="bottom" colors="gray:amount==0">
93                                     <field name="move_line_id" context="{'journal_id':parent.journal_id, 'partner_id':parent.partner_id}"
94                                         on_change="onchange_move_line_id(move_line_id)"
95                                         domain="[('account_id.type','=','payable'), ('reconcile_id','=', False), ('partner_id','=',parent.partner_id)]"
96                                         />
97                                     <field name="account_id" domain="[('type','=','payable')]"/>
98                                     <field name="date_original" readonly="1"/>
99                                     <field name="date_due" readonly="1"/>
100                                     <field name="amount_original" readonly="1"/>
101                                     <field name="amount_unreconciled" readonly="1"/>
102                                     <field name="amount" sum="Total Allocation"/>
103                                 </tree>
104                             </field>
105                             <group>
106                                 <group string="Internal Notes">
107                                     <field name="narration" nolabel="1" colspan="2"/>
108                                 </group>
109                                 <group string="Other Information" col="4">
110                                     <field name="currency_id" colspan="4"/>
111                                     <field name="payment_rate" required="1" on_change="onchange_rate(payment_rate, amount, currency_id, payment_rate_currency_id, company_id, context)" colspan="3"/>
112                                     <field name="payment_rate_currency_id" colspan="1" nolabel="1" on_change="onchange_payment_rate_currency(currency_id, payment_rate, payment_rate_currency_id, date, amount, company_id, context)"/>
113                                     <field name="paid_amount_in_company_currency" colspan="4" invisible="1"/>
114                                     <field name="number" colspan="4"/>
115                                 </group>
116                             </group>
117                         </page>
118                     </notebook>
119                 </form>
120             </field>
121         </record>
122
123         <record model="ir.ui.view" id="view_vendor_payment_form">
124             <field name="name">account.voucher.payment.form</field>
125             <field name="model">account.voucher</field>
126             <field name="type">form</field>
127             <field name="arch" type="xml">
128                 <form version="7.0">
129                 <header>
130                     <button name="proforma_voucher" string="Validate" states="draft" invisible="context.get('line_type', False)" class="oe_highlight"/>
131                     <button name="cancel_voucher" string="Cancel" states="draft,proforma"  invisible="context.get('line_type', False)"/>
132                     <button name="cancel_voucher" string="Unreconcile" type="object" states="posted" invisible="context.get('line_type', False)" confirm="Are you sure to unreconcile and cancel this record ?"/>
133                     <button name="action_cancel_draft" type="object" states="cancel" string="Set to Draft" invisible="context.get('line_type', False)"/>
134                     <field name="state" widget="statusbar" statusbar_visible="draft,posted" statusbar_colors='{"proforma":"blue"}'/>
135                 </header>
136                 <sheet>
137                     <field name="account_id" invisible="True"/>
138                     <field name="pre_line" invisible="1"/>
139                     <field name="type" invisible="True"/>
140                     <group>
141                         <group>
142                             <field name="partner_id" required="1" invisible="context.get('line_type', False)" on_change="onchange_partner_id(partner_id, journal_id, amount, currency_id, type, date, context)" context="{'invoice_currency':currency_id, 'default_customer': 0, 'search_default_supplier': 1, 'default_supplier': 1}"  string="Supplier"/>
143                             <label for="amount" string="Amount"/>
144                             <div>
145                                 <field name="amount" invisible="context.get('line_type', False)" on_change="onchange_amount(amount, payment_rate, partner_id, journal_id, currency_id, type, date, payment_rate_currency_id, company_id, context)" class="oe_inline"/>
146                                 <field name="currency_id" class="oe_inline"/>
147                             </div>
148                             <field name="journal_id"
149                                 domain="[('type','in',['bank', 'cash'])]"
150                                 invisible="context.get('line_type', False)"
151                                 widget="selection"
152                                 on_change="onchange_journal(journal_id, line_dr_ids, False, partner_id, date, amount, type, company_id, context)"
153                                 string="Payment Method"/>
154                         </group>
155                         <group>
156                             <field name="date" invisible="context.get('line_type', False)" on_change="onchange_date(date, currency_id, payment_rate_currency_id, amount, company_id, context)"/>
157                             <field name="reference" invisible="context.get('line_type', False)" string="Payment Ref" placeholder="003/10"/>
158                             <field name="name" colspan="2" invisible="context.get('line_type', False)" placeholder="Invoice SAJ/0042"/>
159                             <field name="company_id" widget="selection" groups="base.group_multi_company"/>
160                         </group>
161                     </group>
162                     <notebook>
163                         <page string="Payment Information">
164                             <field name="line_dr_ids" context="{'journal_id':journal_id, 'type':type, 'partner_id':partner_id}">
165                                 <tree string="Supplier Invoices and Outstanding transactions" editable="bottom" colors="gray:amount==0">
166                                     <field name="move_line_id" context="{'journal_id':parent.journal_id, 'partner_id':parent.partner_id}"
167                                         on_change="onchange_move_line_id(move_line_id)"
168                                         domain="[('account_id.type','=','payable'), ('reconcile_id','=', False), ('partner_id','=',parent.partner_id)]"
169                                         required="1"
170                                         />
171                                     <field name="account_id" groups="base.group_no_one" domain="[('type','=','payable')]"/>
172                                     <field name="date_original" readonly="1"/>
173                                     <field name="date_due" readonly="1"/>
174                                     <field name="amount_original" readonly="1"/>
175                                     <field name="amount_unreconciled" readonly="1" groups="account.group_account_user"/>
176                                     <field name="reconcile" on_change="onchange_reconcile(reconcile, amount, amount_unreconciled, context)" groups="account.group_account_user"/>
177                                     <field name="amount" sum="Total Allocation" on_change="onchange_amount(amount, amount_unreconciled, context)"/>
178                                 </tree>
179                             </field>
180                             <field name="line_cr_ids" attrs="{'invisible': [('pre_line','=',False)]}" context="{'journal_id':journal_id, 'partner_id':partner_id}">
181                                 <tree string="Credits" editable="bottom" colors="gray:amount==0">
182                                     <field name="move_line_id" context="{'journal_id':parent.journal_id, 'partner_id':parent.partner_id}"
183                                         on_change="onchange_move_line_id(move_line_id)"
184                                         domain="[('account_id.type','=','payable'), ('reconcile_id','=', False), ('partner_id','=',parent.partner_id)]"
185                                         required="1"
186                                         />
187                                     <field name="account_id" groups="base.group_no_one" domain="[('type','=','payable')]"/>
188                                     <field name="date_original" readonly="1"/>
189                                     <field name="date_due" readonly="1"/>
190                                     <field name="amount_original" readonly="1"/>
191                                     <field name="amount_unreconciled" readonly="1" groups="account.group_account_user"/>
192                                     <field name="reconcile" on_change="onchange_reconcile(reconcile, amount, amount_unreconciled, context)" groups="account.group_account_user"/>
193                                     <field name="amount" sum="Total Allocation" on_change="onchange_amount(amount, amount_unreconciled, context)"/>
194                                 </tree>
195                             </field>
196                             <group>
197                                 <group string="Internal Notes">
198                                     <field name="narration" colspan="2" nolabel="1"/>
199                                 </group>
200                                 <group>
201                                     <group col="4" attrs="{'invisible':[('currency_id','=',False),('is_multi_currency','=',False)]}">
202                                         <separator string="Currency Options" colspan="4"/>
203                                         <field name="is_multi_currency" invisible="1"/>
204                                         <field name="payment_rate" required="1" on_change="onchange_rate(payment_rate, amount, currency_id, payment_rate_currency_id, company_id, context)" colspan="3"/>
205                                         <field name="payment_rate_currency_id" colspan="1" nolabel="1" on_change="onchange_payment_rate_currency(currency_id, payment_rate, payment_rate_currency_id, date, amount, company_id, context)"/>
206                                         <field name="paid_amount_in_company_currency" colspan="4" invisible="1"/>
207                                     </group>
208                                     <group col="2">
209                                         <separator string="Payment Options" colspan="2"/>
210                                         <field name="writeoff_amount"/>
211                                         <field name="payment_option" required="1"/>
212                                         <field name="writeoff_acc_id"
213                                                attrs="{'invisible':[('payment_option','!=','with_writeoff')], 'required':[('payment_option','=','with_writeoff')]}"
214                                                domain="[('type','=','other')]"/>
215                                         <field name="comment"
216                                                attrs="{'invisible':[('payment_option','!=','with_writeoff')]}"/>
217                                         <field name="analytic_id"
218                                                groups="analytic.group_analytic_accounting"/>
219                                     </group>
220                                 </group>
221                             </group>
222                         </page>
223                         <page string="Journal Items" attrs="{'invisible': [('state','!=','posted')]}">
224                             <group col="4">
225                                 <field name="period_id"/>
226                                 <field name="audit"/>
227                                 <field name="number"/>
228                             </group>
229                             <field name="move_ids" readonly="1">
230                                <tree string="Journal Items">
231                                    <field name="move_id"/>
232                                    <field name="ref"/>
233                                    <field name="date"/>
234                                    <field name="statement_id"/>
235                                    <field name="partner_id"/>
236                                    <field name="account_id"/>
237                                    <field name="name"/>
238                                    <field name="debit"/>
239                                    <field name="credit"/>
240                                    <field name="state"/>
241                                    <field name="reconcile_id"/>
242                                    <field name="amount_currency"/>
243                                    <field name="currency_id"/>
244                                </tree>
245                             </field>
246                         </page>
247                     </notebook>
248                     </sheet>
249                     <div class="oe_chatter">
250                         <field name="message_ids" widget="mail_thread"/>
251                     </div>
252                 </form>
253             </field>
254         </record>
255
256         <record id="action_vendor_payment" model="ir.actions.act_window">
257             <field name="name">Supplier Payment</field>
258             <field name="res_model">account.voucher</field>
259             <field name="view_type">form</field>
260             <field name="domain">[('journal_id.type', 'in', ['bank', 'cash']), ('type','=','payment')]</field>
261             <field name="context">{'type':'payment'}</field>
262             <field name="view_id" eval="False"/>
263             <field name="search_view_id" ref="view_voucher_filter_vendor_pay"/>
264             <field name="target">current</field>
265             <field name="help">Click on "Create" to register a supplier payment. 
266                     &lt;p&gt;
267                     Track payments you do to your supplier and amounts you pay.</field>
268         </record>
269         <record id="action_vendor_payment_tree" model="ir.actions.act_window.view">
270             <field eval="1" name="sequence"/>
271             <field name="view_mode">tree</field>
272             <field name="act_window_id" ref="action_vendor_payment"/>
273         </record>
274         <record id="action_vendor_payment_form" model="ir.actions.act_window.view">
275             <field eval="2" name="sequence"/>
276             <field name="view_mode">form</field>
277             <field name="view_id" ref="view_vendor_payment_form"/>
278             <field name="act_window_id" ref="action_vendor_payment"/>
279         </record>
280
281
282         <menuitem action="action_vendor_payment" icon="STOCK_JUSTIFY_FILL" sequence="12"
283             id="menu_action_vendor_payment"  parent="account.menu_finance_payables"/>
284
285         <record model="ir.ui.view" id="view_vendor_receipt_form">
286             <field name="name">account.voucher.receipt.form</field>
287             <field name="model">account.voucher</field>
288             <field name="type">form</field>
289             <field name="arch" type="xml">
290                 <form version="7.0">
291                 <header>
292                     <button name="proforma_voucher" string="Validate" states="draft" invisible="context.get('line_type', False)" class="oe_highlight"/>
293                     <button name="cancel_voucher" string="Cancel" states="draft,proforma"  invisible="context.get('line_type', False)"/>
294                     <button name="cancel_voucher" string="Unreconcile" type="object" states="posted" invisible="context.get('line_type', False)" confirm="Are you sure to unreconcile and cancel this record ?"/>
295                     <button name="action_cancel_draft" type="object" states="cancel" string="Set to Draft" invisible="context.get('line_type', False)"/>
296                     <field name="state" widget="statusbar" statusbar_visible="draft,posted" statusbar_colors='{"proforma":"blue"}'/>
297                 </header>
298                 <sheet>
299                     <h1><field name="number"/></h1>
300                     <group>
301                         <group>
302                             <field name="partner_id" domain="[('customer','=',True)]" required="1" invisible="context.get('line_type', False)" on_change="onchange_partner_id(partner_id, journal_id, amount, currency_id, type, date, context)" string="Customer" context="{'search_default_customer': 1}"/>
303                             <label for="amount"
304                                     string="Paid Amount"/>
305                             <div>
306                                 <field name="amount" class="oe_inline"
307                                     invisible="context.get('line_type', False)"
308                                     on_change="onchange_amount(amount, payment_rate, partner_id, journal_id, currency_id, type, date, payment_rate_currency_id, company_id, context)"/>
309                                 <field name="currency_id" class="oe_inline"/>
310                             </div>
311
312                             <field name="journal_id"
313                                 domain="[('type','in',['bank', 'cash'])]"
314                                 invisible="context.get('line_type', False)"
315                                 widget="selection"
316                                 on_change="onchange_journal(journal_id, line_cr_ids, False, partner_id, date, amount, type, company_id, context)"
317                                 string="Payment Method"/>
318                         </group>
319                         <group>
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
325                             <field name="account_id"
326                                 widget="selection"
327                                 invisible="True"/>
328                             <field name="pre_line" invisible="1"/>
329                             <field name="type" invisible="True"/>
330                         </group>
331                     </group>
332
333                     <notebook>
334                         <page string="Payment Information">
335                             <field name="line_cr_ids" context="{'journal_id':journal_id, 'type':type, 'partner_id':partner_id}" on_change="onchange_line_ids(line_dr_ids, line_cr_ids, amount, currency_id, context)">
336                                 <tree string="Invoices and outstanding transactions" editable="bottom" colors="gray:amount==0">
337                                     <field name="move_line_id" context="{'journal_id':parent.journal_id, 'partner_id':parent.partner_id}"
338                                         on_change="onchange_move_line_id(move_line_id)"
339                                         domain="[('account_id.type','in',('receivable','payable')), ('reconcile_id','=', False), ('partner_id','=',parent.partner_id)]"
340                                         required="1"
341                                         groups="account.group_account_user"/>
342                                     <field name="account_id"  groups="base.group_no_one" domain="[('type','=','receivable')]"/>
343                                     <field name="date_original" readonly="1"/>
344                                     <field name="date_due" readonly="1"/>
345                                     <field name="amount_original" readonly="1"/>
346                                     <field name="amount_unreconciled" readonly="1" groups="account.group_account_user"/>
347                                     <field name="reconcile" on_change="onchange_reconcile(reconcile, amount, amount_unreconciled, context)" groups="account.group_account_user"/>
348                                     <field name="amount" sum="Total Allocation" on_change="onchange_amount(amount, amount_unreconciled, context)" string="Allocation"/>
349                                 </tree>
350                             </field>
351                             <field name="line_dr_ids" attrs="{'invisible': [('pre_line','=',False)]}" context="{'journal_id':journal_id, 'partner_id':partner_id}" on_change="onchange_line_ids(line_dr_ids, line_cr_ids, amount, currency_id, context)">
352                                 <tree string="Credits" editable="bottom" colors="gray:amount==0">
353                                     <field name="move_line_id" context="{'journal_id':parent.journal_id, 'partner_id':parent.partner_id}"
354                                         on_change="onchange_move_line_id(move_line_id)"
355                                         domain="[('account_id.type','in',('receivable','payable')), ('reconcile_id','=', False), ('partner_id','=',parent.partner_id)]"
356                                         required="1"
357                                         />
358                                     <field name="account_id"  groups="base.group_no_one" domain="[('type','=','receivable')]"/>
359                                     <field name="date_original" readonly="1"/>
360                                     <field name="date_due" readonly="1"/>
361                                     <field name="amount_original" readonly="1"/>
362                                     <field name="amount_unreconciled" readonly="1"/>
363                                     <field name="reconcile" on_change="onchange_reconcile(reconcile, amount, amount_unreconciled, context)"/>
364                                     <field name="amount" sum="Total Allocation" on_change="onchange_amount(amount, amount_unreconciled, context)" string="Allocation"/>
365                                 </tree>
366                             </field>
367                             <group col="3">
368                                 <group>
369                                     <field name="narration" colspan="2" nolabel="1"/>
370                                 </group>
371                                 <group col="4" attrs="{'invisible':[('currency_id','=',False),('is_multi_currency','=',False)]}">
372                                     <field name="is_multi_currency" invisible="1"/>
373                                     <field name="payment_rate" required="1" on_change="onchange_rate(payment_rate, amount, currency_id, payment_rate_currency_id, company_id, context)" colspan="3"/>
374                                     <field name="payment_rate_currency_id" colspan="1" nolabel="1" on_change="onchange_payment_rate_currency(currency_id, payment_rate, payment_rate_currency_id, date, amount, company_id, context)"/>
375                                     <field name="paid_amount_in_company_currency" colspan="4" invisible="1"/>
376                                 </group>
377                                 <group>
378                                     <field name="writeoff_amount"/>
379                                     <field name="payment_option" required="1"/>
380                                     <field name="writeoff_acc_id"
381                                            attrs="{'invisible':[('payment_option','!=','with_writeoff')], 'required':[('payment_option','=','with_writeoff')]}"
382                                            domain="[('type','=','other')]"/>
383                                     <field name="comment"
384                                            attrs="{'invisible':[('payment_option','!=','with_writeoff')]}"/>
385                                     <field name="analytic_id"
386                                            groups="analytic.group_analytic_accounting"/>
387                                 </group>
388                             </group>
389                         </page>
390                         <page string="Journal Items" attrs="{'invisible': [('state','!=','posted')]}">
391                             <group col="4">
392                                 <field name="period_id"/>
393                                 <field name="audit"/>
394                             </group>
395                             <field name="move_ids" readonly="1">
396                                <tree string="Journal Items">
397                                    <field name="move_id"/>
398                                    <field name="ref"/>
399                                    <field name="date"/>
400                                    <field name="statement_id"/>
401                                    <field name="partner_id"/>
402                                    <field name="account_id"/>
403                                    <field name="name"/>
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"/>
410                                </tree>
411                             </field>
412                         </page>
413                     </notebook>
414                     </sheet>
415                     <div class="oe_chatter">
416                         <field name="message_ids" widget="mail_thread"/>
417                     </div>
418                 </form>
419             </field>
420         </record>
421
422         <record id="action_vendor_receipt" model="ir.actions.act_window">
423             <field name="name">Customer Payment</field>
424             <field name="res_model">account.voucher</field>
425             <field name="view_type">form</field>
426             <field name="domain">[('journal_id.type', 'in', ['bank', 'cash']), ('type','=','receipt')]</field>
427             <field name="context">{'type':'receipt'}</field>
428             <field name="search_view_id" ref="view_voucher_filter_customer_pay"/>
429             <field name="view_id" eval="False"/>
430             <field name="target">current</field>
431             <field name="help">
432                 Click on create to register a payment.
433                 &lt;p&gt;
434                 Enter the customer and the payment method and then, either create manually a payment record or OpenERP will propose to you automatically the reconciliation of this payment with the open invoices or sales receipts.
435             </field>
436         </record>
437         <record id="action_vendor_receipt_tree" model="ir.actions.act_window.view">
438             <field eval="1" name="sequence"/>
439             <field name="view_mode">tree</field>
440             <field name="act_window_id" ref="action_vendor_receipt"/>
441         </record>
442         <record id="action_vendor_receipt_form" model="ir.actions.act_window.view">
443             <field eval="2" name="sequence"/>
444             <field name="view_mode">form</field>
445             <field name="view_id" ref="view_vendor_receipt_form"/>
446             <field name="act_window_id" ref="action_vendor_receipt"/>
447         </record>
448
449         <menuitem action="action_vendor_receipt" icon="STOCK_JUSTIFY_FILL" sequence="12"
450             id="menu_action_vendor_receipt"  parent="account.menu_finance_receivables"/>
451     </data>
452 </openerp>