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