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