~koi-accounting-modules-maintainer/koi-accounting-modules/7.0-fixed-asset

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>  

        <record id="form_account_wizardBankPayment" model="ir.ui.view">
            <field name="name">Bank Payment</field>
            <field name="model">account.wizard_bank_payment</field>
            <field name="arch" type="xml">
                <form string="Bank Payment" version="7.0">
                    <group col="2" colspan="4">
                        <group colspan="1" col="2" name="group_1_2">
                            <separator string="General Information" colspan="2"/>
                            <field name="date"/>
                            <field name="journal_id"/>
                            <newline/>
                            <field name="name"/>
                            <newline/>
                        </group> 
                        <group colspan="1" col="2" name="group_1_3">
                            <separator string="Payment Method" colspan="2"/>
                            <field name="payment_method" required="1"/>
                            <field name="cheque_number" attrs="{'required' : [('payment_method','!=','bank_transfer')], 'invisible':[('payment_method','!=','cheque'),('payment_method','!=','giro')]}"/>
                            <field name="cheque_date" attrs="{'required' : [('payment_method','!=','bank_transfer')], 'invisible':[('payment_method','!=','cheque'),('payment_method','!=','giro')]}"/>
                            <field name="cheque_recepient" attrs="{'invisible':[('payment_method','!=','cheque')]}"/>
                            <field name="cheque_partner_bank_id" attrs="{'required' : [('payment_method','=','giro')], 'invisible':[('payment_method','!=','giro')]}"/>
                            <field name="cheque_bank_id" attrs="{'invisible':[('payment_method','!=','giro')]}"/>
                        </group>  
                        <newline/>
                    </group>
                    <footer>
                        <button name="bank_payment" string="Create" type="object" class="oe_highlight"/>
                        or
                        <button special="cancel" string="_Cancel" class="oe_link"/>
                    </footer>
                </form>
            </field>
        </record>
        
        <record id="action_account_wizardBankPayment" model="ir.actions.act_window">
            <field name="name">Bank Payment</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">account.wizard_bank_payment</field>
            <field name="view_type">form</field>
            <field name="view_mode">form</field>
            <field name="view_id" ref="form_account_wizardBankPayment"/>
            <field name="target">new</field>
            <field name="multi">True</field>
            <field name="context">{'voucher_type' : 'Bank Payment'}</field>
        </record>          

        <record id="waction_account_wizardBankPayment" model="ir.values">
            <field name="model_id" ref="account.model_account_invoice" />
            <field name="name">Bank Payment</field>
            <field name="key2">client_action_multi</field>
            <field name="value" eval="'ir.actions.act_window,' + str(ref('action_account_wizardBankPayment'))" />
            <field name="key">action</field>
            <field name="model">account.invoice</field>
            <field name="context">{'voucher_type' : 'Bank Payment', 'search_default_draft' : 1, 'search_default_confirm' : 1, 'search_default_waiting' : 1, 'search_default_ready' : 1, 'search_default_proforma' : 1}</field>
            <field name="domain">[('voucher_type_id.name','=','Bank Payment')]</field>
        </record>
        
    </data>
</openerp>