[ADD] Added kanban global click to opportunities
[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)"/>
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                     <div class="oe_title">
306                         <div class="oe_edit_only">
307                             <label for="parter_id" /> 
308                         </div>
309                         <h1>
310                             <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}"/>
311                         </h1>
312                     </div>
313                     <div>
314                         Pay
315                         <field name="amount"
316                             invisible="context.get('line_type', False)"
317                             string="Paid Amount"
318                             class="oe_inline"
319                             on_change="onchange_amount(amount, payment_rate, partner_id, journal_id, currency_id, type, date, payment_rate_currency_id, company_id, context)"/>
320                         by
321                         <field name="journal_id"
322                             domain="[('type','in',['bank', 'cash'])]"
323                             invisible="context.get('line_type', False)"
324                             widget="selection"
325                             class="oe_inline"
326                             on_change="onchange_journal(journal_id, line_cr_ids, False, partner_id, date, amount, type, company_id, context)"
327                             string="Payment Method"/>
328
329                     </div>
330
331                     <group col="6">
332                         <field name="currency_id" invisible="1"/>
333                         <field name="date" invisible="context.get('line_type', False)" on_change="onchange_date(date, currency_id, payment_rate_currency_id, amount, company_id, context)"/>
334                         <field name="reference" invisible="context.get('line_type', False)" string="Payment Ref" placeholder="003/10"/>
335                         <field name="name" colspan="2" invisible="context.get('line_type', False)" placeholder="Invoice SAJ/0042"/>
336                         <field name="company_id" widget="selection" groups="base.group_multi_company"/>
337                         <field name="account_id"
338                             widget="selection"
339                             invisible="True"/>
340                         <field name="pre_line" invisible="1"/>
341                         <field name="type" invisible="True"/>
342                     </group>
343                     <notebook>
344                         <page string="Payment Information">
345                             <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)">
346                                 <tree string="Invoices and outstanding transactions" editable="bottom" colors="gray:amount==0">
347                                     <field name="move_line_id" context="{'journal_id':parent.journal_id, 'partner_id':parent.partner_id}"
348                                         on_change="onchange_move_line_id(move_line_id)"
349                                         domain="[('account_id.type','in',('receivable','payable')), ('reconcile_id','=', False), ('partner_id','=',parent.partner_id)]"
350                                         required="1"
351                                         groups="account.group_account_user"/>
352                                     <field name="account_id"  groups="base.group_no_one" domain="[('type','=','receivable')]"/>
353                                     <field name="date_original" readonly="1"/>
354                                     <field name="date_due" readonly="1"/>
355                                     <field name="amount_original" readonly="1"/>
356                                     <field name="amount_unreconciled" readonly="1" groups="account.group_account_user"/>
357                                     <field name="reconcile" on_change="onchange_reconcile(reconcile, amount, amount_unreconciled, context)" groups="account.group_account_user"/>
358                                     <field name="amount" sum="Total Allocation" on_change="onchange_amount(amount, amount_unreconciled, context)" string="Allocation"/>
359                                 </tree>
360                             </field>
361                             <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)">
362                                 <tree string="Credits" editable="bottom" colors="gray:amount==0">
363                                     <field name="move_line_id" context="{'journal_id':parent.journal_id, 'partner_id':parent.partner_id}"
364                                         on_change="onchange_move_line_id(move_line_id)"
365                                         domain="[('account_id.type','in',('receivable','payable')), ('reconcile_id','=', False), ('partner_id','=',parent.partner_id)]"
366                                         required="1"
367                                         />
368                                     <field name="account_id"  groups="base.group_no_one" domain="[('type','=','receivable')]"/>
369                                     <field name="date_original" readonly="1"/>
370                                     <field name="date_due" readonly="1"/>
371                                     <field name="amount_original" readonly="1"/>
372                                     <field name="amount_unreconciled" readonly="1"/>
373                                     <field name="reconcile" on_change="onchange_reconcile(reconcile, amount, amount_unreconciled, context)"/>
374                                     <field name="amount" sum="Total Allocation" on_change="onchange_amount(amount, amount_unreconciled, context)" string="Allocation"/>
375                                 </tree>
376                             </field>
377                             <group col="3">
378                                 <group col="2" string="Internal Notes">
379                                     <field name="narration" colspan="2" nolabel="1"/>
380                                 </group>
381                                 <group col="4" attrs="{'invisible':[('currency_id','=',False),('is_multi_currency','=',False)]}">
382                                     <separator string="Currency Options" colspan="4"/>
383                                     <field name="is_multi_currency" invisible="1"/>
384                                     <field name="payment_rate" required="1" on_change="onchange_rate(payment_rate, amount, currency_id, payment_rate_currency_id, company_id, context)" colspan="3"/>
385                                     <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)"/>
386                                     <field name="paid_amount_in_company_currency" colspan="4" invisible="1"/>
387                                 </group>
388                                 <group col="2">
389                                     <separator string="Payment Options" colspan="2"/>
390                                     <field name="writeoff_amount"/>
391                                     <field name="payment_option" required="1"/>
392                                     <field name="writeoff_acc_id"
393                                            attrs="{'invisible':[('payment_option','!=','with_writeoff')], 'required':[('payment_option','=','with_writeoff')]}"
394                                            domain="[('type','=','other')]"/>
395                                     <field name="comment"
396                                            attrs="{'invisible':[('payment_option','!=','with_writeoff')]}"/>
397                                     <field name="analytic_id"
398                                            groups="analytic.group_analytic_accounting"/>
399                                 </group>
400                             </group>
401                         </page>
402                         <page string="Journal Items" attrs="{'invisible': [('state','!=','posted')]}">
403                             <group col="4">
404                                 <field name="period_id"/>
405                                 <field name="audit"/>
406                                 <field name="number"/>
407                             </group>
408                             <field name="move_ids" readonly="1">
409                                <tree string="Journal Items">
410                                    <field name="move_id"/>
411                                    <field name="ref"/>
412                                    <field name="date"/>
413                                    <field name="statement_id"/>
414                                    <field name="partner_id"/>
415                                    <field name="account_id"/>
416                                    <field name="name"/>
417                                    <field name="debit"/>
418                                    <field name="credit"/>
419                                    <field name="state"/>
420                                    <field name="reconcile_id"/>
421                                    <field name="amount_currency"/>
422                                    <field name="currency_id"/>
423                                </tree>
424                             </field>
425                         </page>
426                     </notebook>
427                     </sheet>
428                 </form>
429             </field>
430         </record>
431
432         <record id="action_vendor_receipt" model="ir.actions.act_window">
433             <field name="name">Customer Payment</field>
434             <field name="res_model">account.voucher</field>
435             <field name="view_type">form</field>
436             <field name="domain">[('journal_id.type', 'in', ['bank', 'cash']), ('type','=','receipt')]</field>
437             <field name="context">{'type':'receipt'}</field>
438             <field name="search_view_id" ref="view_voucher_filter_customer_pay"/>
439             <field name="view_id" eval="False"/>
440             <field name="target">current</field>
441             <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>
442         </record>
443         <record id="action_vendor_receipt_tree" model="ir.actions.act_window.view">
444             <field eval="1" name="sequence"/>
445             <field name="view_mode">tree</field>
446             <field name="act_window_id" ref="action_vendor_receipt"/>
447         </record>
448         <record id="action_vendor_receipt_form" model="ir.actions.act_window.view">
449             <field eval="2" name="sequence"/>
450             <field name="view_mode">form</field>
451             <field name="view_id" ref="view_vendor_receipt_form"/>
452             <field name="act_window_id" ref="action_vendor_receipt"/>
453         </record>
454
455         <menuitem action="action_vendor_receipt" icon="STOCK_JUSTIFY_FILL" sequence="12"
456             id="menu_action_vendor_receipt"  parent="account.menu_finance_receivables"/>
457     </data>
458 </openerp>