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
|
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="form_account_wizardCashPayment" model="ir.ui.view">
<field name="name">Cash Payment</field>
<field name="model">account.wizard_cash_payment</field>
<field name="arch" type="xml">
<form string="Cash Payment" version="7.0">
<group col="2" colspan="4">
<field name="date"/>
<field name="journal_id"/>
<newline/>
<field name="name"/>
<newline/>
</group>
<footer>
<button name="cash_payment" string="Create" type="object" class="oe_highlight"/>
<button special="cancel" string="_Cancel" class="oe_link"/>
</footer>
</form>
</field>
</record>
<record id="action_account_wizardCashPayment" model="ir.actions.act_window">
<field name="name">Cash Payment</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">account.wizard_cash_payment</field>
<field name="view_type">form</field>
<field name="view_mode">form</field>
<field name="view_id" ref="form_account_wizardCashPayment"/>
<field name="target">new</field>
<field name="multi">True</field>
<field name="context">{'voucher_type' : 'Cash Payment'}</field>
</record>
<record id="waction_account_wizardCashpayment" model="ir.values">
<field name="model_id" ref="account.model_account_invoice" />
<field name="name">Cash Payment</field>
<field name="key2">client_action_multi</field>
<field name="value" eval="'ir.actions.act_window,' + str(ref('action_account_wizardCashPayment'))" />
<field name="key">action</field>
<field name="model">account.invoice</field>
<field name="context">{'voucher_type' : 'Cash 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','=','Cash Payment')]</field>
</record>
</data>
</openerp>
|