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