1
<?xml version="1.0" encoding="utf-8"?>
4
<!-- Account post voucher Form -->
6
<record id="account_voucher_post_view" model="ir.ui.view">
7
<field name="name">account.post.voucher.form</field>
8
<field name="model">account.post.voucher</field>
9
<field name="type">form</field>
10
<field name="arch" type="xml">
11
<form string="Post Voucher">
12
<group colspan="2" col="4">
13
<field name="total_paid" readonly="True"/>
14
<field name="total_allocated" readonly="True"/>
15
<field name="ok_to_go" invisible="True" on_change="onchange_ok_to_go(ok_to_go)"/>
17
<group height="100" width="320">
18
<separator string="Confirm Amounts?"/>
20
<group colspan="2" col="4">
21
<button special="cancel" string="Cancel" icon="gtk-cancel"/>
22
<button name="launch_wizard" string="Yes" type="object" attrs="{'invisible':[('ok_to_go', '>', 0.0)]}" icon="gtk-ok" default_focus="1"/>
29
<record id="action_proforma_voucher" model="ir.actions.act_window">
30
<field name="name">Post Voucher</field>
31
<field name="type">ir.actions.act_window</field>
32
<field name="res_model">account.post.voucher</field>
33
<field name="view_type">form</field>
34
<field name="view_mode">form</field>
35
<field name="view_id" ref="account_voucher_post_view"/>
36
<field name="target">new</field>