[MERGE] lp:~openerp-dev/openobject-addons/trunk-review_module_desc-psi
[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" 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" 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)" class="oe_highlight"/>
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>
153                     <field name="account_id" invisible="True"/>
154                     <field name="pre_line" invisible="1"/>
155                     <field name="type" invisible="True"/>
156                     <group>
157                         <group>
158                             <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"/>
159                             <label for="amount" string="Amount"/>
160                             <div>
161                                 <field name="amount" invisible="context.get('line_type', False)" on_change="onchange_amount(amount, payment_rate, partner_id, journal_id, currency_id, type, date, payment_rate_currency_id, company_id, context)" class="oe_inline"/>
162                                 <field name="currency_id" class="oe_inline"/>
163                             </div>
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                         </group>
171                         <group>
172                             <field name="date" invisible="context.get('line_type', False)" on_change="onchange_date(date, currency_id, payment_rate_currency_id, amount, company_id, context)"/>
173                             <field name="reference" invisible="context.get('line_type', False)" string="Payment Ref" placeholder="003/10"/>
174                             <field name="name" colspan="2" invisible="context.get('line_type', False)" placeholder="Invoice SAJ/0042"/>
175                             <field name="company_id" widget="selection" groups="base.group_multi_company"/>
176                         </group>
177                     </group>
178                     <notebook>
179                         <page string="Payment Information">
180                             <field name="line_dr_ids" context="{'journal_id':journal_id, 'type':type, 'partner_id':partner_id}">
181                                 <tree string="Supplier Invoices and Outstanding transactions" editable="bottom" colors="gray:amount==0">
182                                     <field name="move_line_id" context="{'journal_id':parent.journal_id, 'partner_id':parent.partner_id}"
183                                         on_change="onchange_move_line_id(move_line_id)"
184                                         domain="[('account_id.type','=','payable'), ('reconcile_id','=', False), ('partner_id','=',parent.partner_id)]"
185                                         required="1"
186                                         />
187                                     <field name="account_id" groups="base.group_no_one" domain="[('type','=','payable')]"/>
188                                     <field name="date_original" readonly="1"/>
189                                     <field name="date_due" readonly="1"/>
190                                     <field name="amount_original" readonly="1"/>
191                                     <field name="amount_unreconciled" readonly="1" groups="account.group_account_user"/>
192                                     <field name="reconcile" on_change="onchange_reconcile(reconcile, amount, amount_unreconciled, context)" groups="account.group_account_user"/>
193                                     <field name="amount" sum="Total Allocation" on_change="onchange_amount(amount, amount_unreconciled, context)"/>
194                                 </tree>
195                             </field>
196                             <field name="line_cr_ids" attrs="{'invisible': [('pre_line','=',False)]}" context="{'journal_id':journal_id, 'partner_id':partner_id}">
197                                 <tree string="Credits" editable="bottom" colors="gray:amount==0">
198                                     <field name="move_line_id" context="{'journal_id':parent.journal_id, 'partner_id':parent.partner_id}"
199                                         on_change="onchange_move_line_id(move_line_id)"
200                                         domain="[('account_id.type','=','payable'), ('reconcile_id','=', False), ('partner_id','=',parent.partner_id)]"
201                                         required="1"
202                                         />
203                                     <field name="account_id" groups="base.group_no_one" domain="[('type','=','payable')]"/>
204                                     <field name="date_original" readonly="1"/>
205                                     <field name="date_due" readonly="1"/>
206                                     <field name="amount_original" readonly="1"/>
207                                     <field name="amount_unreconciled" readonly="1" groups="account.group_account_user"/>
208                                     <field name="reconcile" on_change="onchange_reconcile(reconcile, amount, amount_unreconciled, context)" groups="account.group_account_user"/>
209                                     <field name="amount" sum="Total Allocation" on_change="onchange_amount(amount, amount_unreconciled, context)"/>
210                                 </tree>
211                             </field>
212                             <group>
213                                 <group string="Internal Notes">
214                                     <field name="narration" colspan="2" nolabel="1"/>
215                                 </group>
216                                 <group>
217                                     <group col="4" attrs="{'invisible':[('currency_id','=',False),('is_multi_currency','=',False)]}">
218                                         <separator string="Currency Options" colspan="4"/>
219                                         <field name="is_multi_currency" invisible="1"/>
220                                         <field name="payment_rate" required="1" on_change="onchange_rate(payment_rate, amount, currency_id, payment_rate_currency_id, company_id, context)" colspan="3"/>
221                                         <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)"/>
222                                         <field name="paid_amount_in_company_currency" colspan="4" invisible="1"/>
223                                     </group>
224                                     <group col="2">
225                                         <separator string="Payment Options" colspan="2"/>
226                                         <field name="writeoff_amount"/>
227                                         <field name="payment_option" required="1"/>
228                                         <field name="writeoff_acc_id"
229                                                attrs="{'invisible':[('payment_option','!=','with_writeoff')], 'required':[('payment_option','=','with_writeoff')]}"
230                                                domain="[('type','=','other')]"/>
231                                         <field name="comment"
232                                                attrs="{'invisible':[('payment_option','!=','with_writeoff')]}"/>
233                                         <field name="analytic_id"
234                                                groups="analytic.group_analytic_accounting"/>
235                                     </group>
236                                 </group>
237                             </group>
238                         </page>
239                         <page string="Journal Items" attrs="{'invisible': [('state','!=','posted')]}">
240                             <group col="4">
241                                 <field name="period_id"/>
242                                 <field name="audit"/>
243                                 <field name="number"/>
244                             </group>
245                             <field name="move_ids" readonly="1">
246                                <tree string="Journal Items">
247                                    <field name="move_id"/>
248                                    <field name="ref"/>
249                                    <field name="date"/>
250                                    <field name="statement_id"/>
251                                    <field name="partner_id"/>
252                                    <field name="account_id"/>
253                                    <field name="name"/>
254                                    <field name="debit"/>
255                                    <field name="credit"/>
256                                    <field name="state"/>
257                                    <field name="reconcile_id"/>
258                                    <field name="amount_currency"/>
259                                    <field name="currency_id"/>
260                                </tree>
261                             </field>
262                         </page>
263                     </notebook>
264                     </sheet>
265                     <div class="oe_chatter">
266                         <field name="message_ids" widget="mail_thread"/>
267                     </div>
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">Click on "Create" to register a supplier payment. 
282                     &lt;p&gt;
283                     Track payments you do to your supplier and amounts you pay.</field>
284         </record>
285         <record id="action_vendor_payment_tree" model="ir.actions.act_window.view">
286             <field eval="1" name="sequence"/>
287             <field name="view_mode">tree</field>
288             <field name="act_window_id" ref="action_vendor_payment"/>
289         </record>
290         <record id="action_vendor_payment_form" model="ir.actions.act_window.view">
291             <field eval="2" name="sequence"/>
292             <field name="view_mode">form</field>
293             <field name="view_id" ref="view_vendor_payment_form"/>
294             <field name="act_window_id" ref="action_vendor_payment"/>
295         </record>
296
297
298         <menuitem action="action_vendor_payment" icon="STOCK_JUSTIFY_FILL" sequence="12"
299             id="menu_action_vendor_payment"  parent="account.menu_finance_payables"/>
300
301         <record model="ir.ui.view" id="view_vendor_receipt_form">
302             <field name="name">account.voucher.receipt.form</field>
303             <field name="model">account.voucher</field>
304             <field name="type">form</field>
305             <field name="arch" type="xml">
306                 <form version="7.0">
307                 <header>
308                     <button name="proforma_voucher" string="Validate" states="draft" invisible="context.get('line_type', False)" class="oe_highlight"/>
309                     <button name="cancel_voucher" string="Cancel" states="draft,proforma"  invisible="context.get('line_type', False)"/>
310                     <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 ?"/>
311                     <button name="action_cancel_draft" type="object" states="cancel" string="Set to Draft" invisible="context.get('line_type', False)"/>
312                     <field name="state" widget="statusbar" statusbar_visible="draft,posted" statusbar_colors='{"proforma":"blue"}'/>
313                 </header>
314                 <sheet>
315                     <h1><field name="number"/></h1>
316                     <group>
317                         <group>
318                             <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}"/>
319                             <label for="amount"
320                                     string="Paid Amount"/>
321                             <div>
322                                 <field name="amount" class="oe_inline"
323                                     invisible="context.get('line_type', False)"
324                                     on_change="onchange_amount(amount, payment_rate, partner_id, journal_id, currency_id, type, date, payment_rate_currency_id, company_id, context)"/>
325                                 <field name="currency_id" class="oe_inline"/>
326                             </div>
327
328                             <field name="journal_id"
329                                 domain="[('type','in',['bank', 'cash'])]"
330                                 invisible="context.get('line_type', False)"
331                                 widget="selection"
332                                 on_change="onchange_journal(journal_id, line_cr_ids, False, partner_id, date, amount, type, company_id, context)"
333                                 string="Payment Method"/>
334                         </group>
335                         <group>
336                             <field name="date" invisible="context.get('line_type', False)" on_change="onchange_date(date, currency_id, payment_rate_currency_id, amount, company_id, context)"/>
337                             <field name="reference" invisible="context.get('line_type', False)" string="Payment Ref" placeholder="003/10"/>
338                             <field name="name" colspan="2" invisible="context.get('line_type', False)" placeholder="Invoice SAJ/0042"/>
339                             <field name="company_id" widget="selection" groups="base.group_multi_company"/>
340
341                             <field name="account_id"
342                                 widget="selection"
343                                 invisible="True"/>
344                             <field name="pre_line" invisible="1"/>
345                             <field name="type" invisible="True"/>
346                         </group>
347                     </group>
348
349                     <notebook>
350                         <page string="Payment Information">
351                             <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)">
352                                 <tree string="Invoices and outstanding transactions" editable="bottom" colors="gray:amount==0">
353                                     <field name="move_line_id" context="{'journal_id':parent.journal_id, 'partner_id':parent.partner_id}"
354                                         on_change="onchange_move_line_id(move_line_id)"
355                                         domain="[('account_id.type','in',('receivable','payable')), ('reconcile_id','=', False), ('partner_id','=',parent.partner_id)]"
356                                         required="1"
357                                         groups="account.group_account_user"/>
358                                     <field name="account_id"  groups="base.group_no_one" domain="[('type','=','receivable')]"/>
359                                     <field name="date_original" readonly="1"/>
360                                     <field name="date_due" readonly="1"/>
361                                     <field name="amount_original" readonly="1"/>
362                                     <field name="amount_unreconciled" readonly="1" groups="account.group_account_user"/>
363                                     <field name="reconcile" on_change="onchange_reconcile(reconcile, amount, amount_unreconciled, context)" groups="account.group_account_user"/>
364                                     <field name="amount" sum="Total Allocation" on_change="onchange_amount(amount, amount_unreconciled, context)" string="Allocation"/>
365                                 </tree>
366                             </field>
367                             <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)">
368                                 <tree string="Credits" editable="bottom" colors="gray:amount==0">
369                                     <field name="move_line_id" context="{'journal_id':parent.journal_id, 'partner_id':parent.partner_id}"
370                                         on_change="onchange_move_line_id(move_line_id)"
371                                         domain="[('account_id.type','in',('receivable','payable')), ('reconcile_id','=', False), ('partner_id','=',parent.partner_id)]"
372                                         required="1"
373                                         />
374                                     <field name="account_id"  groups="base.group_no_one" domain="[('type','=','receivable')]"/>
375                                     <field name="date_original" readonly="1"/>
376                                     <field name="date_due" readonly="1"/>
377                                     <field name="amount_original" readonly="1"/>
378                                     <field name="amount_unreconciled" readonly="1"/>
379                                     <field name="reconcile" on_change="onchange_reconcile(reconcile, amount, amount_unreconciled, context)"/>
380                                     <field name="amount" sum="Total Allocation" on_change="onchange_amount(amount, amount_unreconciled, context)" string="Allocation"/>
381                                 </tree>
382                             </field>
383                             <group col="3">
384                                 <group>
385                                     <field name="narration" colspan="2" nolabel="1"/>
386                                 </group>
387                                 <group col="4" attrs="{'invisible':[('currency_id','=',False),('is_multi_currency','=',False)]}">
388                                     <field name="is_multi_currency" invisible="1"/>
389                                     <field name="payment_rate" required="1" on_change="onchange_rate(payment_rate, amount, currency_id, payment_rate_currency_id, company_id, context)" colspan="3"/>
390                                     <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)"/>
391                                     <field name="paid_amount_in_company_currency" colspan="4" invisible="1"/>
392                                 </group>
393                                 <group>
394                                     <field name="writeoff_amount"/>
395                                     <field name="payment_option" required="1"/>
396                                     <field name="writeoff_acc_id"
397                                            attrs="{'invisible':[('payment_option','!=','with_writeoff')], 'required':[('payment_option','=','with_writeoff')]}"
398                                            domain="[('type','=','other')]"/>
399                                     <field name="comment"
400                                            attrs="{'invisible':[('payment_option','!=','with_writeoff')]}"/>
401                                     <field name="analytic_id"
402                                            groups="analytic.group_analytic_accounting"/>
403                                 </group>
404                             </group>
405                         </page>
406                         <page string="Journal Items" attrs="{'invisible': [('state','!=','posted')]}">
407                             <group col="4">
408                                 <field name="period_id"/>
409                                 <field name="audit"/>
410                             </group>
411                             <field name="move_ids" readonly="1">
412                                <tree string="Journal Items">
413                                    <field name="move_id"/>
414                                    <field name="ref"/>
415                                    <field name="date"/>
416                                    <field name="statement_id"/>
417                                    <field name="partner_id"/>
418                                    <field name="account_id"/>
419                                    <field name="name"/>
420                                    <field name="debit"/>
421                                    <field name="credit"/>
422                                    <field name="state"/>
423                                    <field name="reconcile_id"/>
424                                    <field name="amount_currency"/>
425                                    <field name="currency_id"/>
426                                </tree>
427                             </field>
428                         </page>
429                     </notebook>
430                     </sheet>
431                     <div class="oe_chatter">
432                         <field name="message_ids" widget="mail_thread"/>
433                     </div>
434                 </form>
435             </field>
436         </record>
437
438         <record id="action_vendor_receipt" model="ir.actions.act_window">
439             <field name="name">Customer Payment</field>
440             <field name="res_model">account.voucher</field>
441             <field name="view_type">form</field>
442             <field name="domain">[('journal_id.type', 'in', ['bank', 'cash']), ('type','=','receipt')]</field>
443             <field name="context">{'type':'receipt'}</field>
444             <field name="search_view_id" ref="view_voucher_filter_customer_pay"/>
445             <field name="view_id" eval="False"/>
446             <field name="target">current</field>
447             <field name="help">
448                 Click on create to register a payment.
449                 &lt;p&gt;
450                 Enter the customer and the payment method and then, either create manually a payment record or OpenERP will propose to you automatically the reconciliation of this payment with the open invoices or sales receipts.
451             </field>
452         </record>
453         <record id="action_vendor_receipt_tree" model="ir.actions.act_window.view">
454             <field eval="1" name="sequence"/>
455             <field name="view_mode">tree</field>
456             <field name="act_window_id" ref="action_vendor_receipt"/>
457         </record>
458         <record id="action_vendor_receipt_form" model="ir.actions.act_window.view">
459             <field eval="2" name="sequence"/>
460             <field name="view_mode">form</field>
461             <field name="view_id" ref="view_vendor_receipt_form"/>
462             <field name="act_window_id" ref="action_vendor_receipt"/>
463         </record>
464
465         <menuitem action="action_vendor_receipt" icon="STOCK_JUSTIFY_FILL" sequence="12"
466             id="menu_action_vendor_receipt"  parent="account.menu_finance_receivables"/>
467     </data>
468 </openerp>