In the wizard "Post Journal Entries", we can now select multiple journals and multipl...
[odoo/odoo.git] / addons / account_check_writing / account_voucher_view.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <openerp>
3     <data>
4
5         <!-- Supplier write check view -->
6
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="amount" position="after">
13                     <newline/>
14                     <field name="allow_check" invisible="1"/>
15                     <field name="amount_in_word" attrs="{'invisible':[('allow_check','!=',1)]}" nolabel="1" colspan="6"/>
16                     <newline/>
17                 </field>
18                 <field name="number" position="replace">
19                     <field name="number" attrs="{'readonly':[('allow_check','!=',1)]}" />
20                 </field>
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"/>
23                 </button>
24             </field>
25         </record>
26
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. 
39               </p><p>
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
44                 invoices or bills.
45               </p>
46             </field>
47         </record>
48
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"/>
54         </record>
55
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"/>
60         </record>
61
62         <menuitem action="action_write_check" icon="STOCK_JUSTIFY_FILL" sequence="12"
63             id="menu_action_write_check"  parent="account.menu_finance_payables"/>
64     </data>
65 </openerp>