1 <?xml version="1.0" encoding="UTF-8"?>
5 <!-- Supplier write check view -->
7 <record model="ir.ui.view" id="view_vendor_payment_check_form">
8 <field name="name">account.voucher.payment.check.form</field>
9 <field name="model">account.voucher</field>
10 <field name="inherit_id" ref="account_voucher.view_vendor_payment_form" />
11 <field name="arch" type="xml">
12 <field name="journal_id" position="after">
14 <field name="allow_check" invisible="1"/>
15 <field name="amount_in_word" attrs="{'invisible':[('allow_check','!=',1)]}" nolabel="1" colspan="6"/>
18 <field name="number" position="replace">
19 <field name="number" attrs="{'readonly':[('allow_check','!=',1)]}" />
21 <button name="proforma_voucher" position="after">
22 <button name="print_check" icon="gtk-print" string="Print Check" type="object" attrs="{'invisible':['|',('allow_check','!=',1),('state','!=','posted') ]}" class="oe_highlight"/>
27 <record id="action_write_check" model="ir.actions.act_window">
28 <field name="name">Write Checks</field>
29 <field name="res_model">account.voucher</field>
30 <field name="view_type">form</field>
31 <field name="view_mode">form,tree</field>
32 <field name="domain">[('journal_id.type', '=', 'bank'), ('type','=','payment'), ('journal_id.allow_check_writing','=',True)]</field>
33 <field name="context">{'type':'payment','write_check':True}</field>
34 <field name="search_view_id" ref="account_voucher.view_voucher_filter"/>
35 <field name="target">current</field>
36 <field name="help" type="html">
37 <p class="oe_view_nocontent_create">
38 Click to create a new check.
40 The check payment form allows you to track the payment you do
41 to your suppliers using checks. When you select a supplier, the
42 payment method and an amount for the payment, OpenERP will
43 propose to reconcile your payment with the open supplier
49 <record id="action_write_check_form" model="ir.actions.act_window.view">
50 <field eval="2" name="sequence"/>
51 <field name="view_mode">form</field>
52 <field name="view_id" ref="view_vendor_payment_check_form"/>
53 <field name="act_window_id" ref="action_write_check"/>
56 <record id="action_write_check_tree" model="ir.actions.act_window.view">
57 <field eval="1" name="sequence"/>
58 <field name="view_mode">tree</field>
59 <field name="act_window_id" ref="action_write_check"/>
62 <menuitem action="action_write_check" icon="STOCK_JUSTIFY_FILL" sequence="12"
63 id="menu_action_write_check" parent="account.menu_finance_payables"/>