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