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
<?xml version="1.0" encoding="UTF-8"?>
<openerp>
<data>
<record id="instant_voucher_form" model="ir.ui.view">
<field name="name">Instant voucher form view</field>
<field name="model">account.voucher.instant</field>
<field name="arch" type="xml">
<form string="Create matching voucher" version="7.0">
<field name="type" invisible="1"/>
<field name="state" invisible="1"/>
<group>
<field name="ref"/>
<field name="partner_id"/>
</group>
<group>
<field name="statement_line_id"/>
<field name="balance"/>
<field name="voucher_id"
context="{'statement_line_id': statement_line_id, 'form_view_ref': (type == 'sale' and 'account_voucher.view_sale_receipt_form' or 'account_voucher.view_purchase_receipt_form')}"/>
</group>
<footer>
<button string="Confirm"
class="oe_highlight"
states="ready"
name="confirm"
type="object"/>
<button string="Create voucher"
class="oe_highlight"
states="init"
name="create_voucher"
type="object"/>
or
<button string="Cancel"
class="oe_link"
name="cancel"
type="object"/>
</footer>
</form>
</field>
</record>
<act_window name="Create matching voucher"
res_model="account.voucher.instant"
src_model="account.bank.statement.line"
view_mode="form"
target="new"
key2="client_action_multi"
id="act_instant_voucher"/>
</data>
</openerp>