Contoh pembuatan wizard field :

import wizard
import pooler
import time
import netsvc

wizard_form = “””<?xml version=”1.0″?>
<form string=”Gaji”>

<field name=”periode_id” required=”1″/>
<newline/>
<field name=”tanggal” required=”1″/>
<newline/>
<field name=”kategori_karyawan_id” required=”1″/>

</form>
“””

wizard_fields = {

‘periode_id : {‘string’:’Periode’, ‘type’:’many2one’, ‘relation’:’account.period’},
‘tanggal’ : {‘string’:Tanggal, ‘type’:’date’},
‘kategori_karyawan_id’ : {‘string’:’Kategori Karyawan’, ‘type’:’many2one’, ‘relation’:’hr.employee.category’},

 }