(OBJECT) .py

def onchange_alamat_invoice(self, cr, uid, ids, partner_id):

if not partner_id:

raise osv.except_osv(‘Peringatan!’, ‘Konsumen harus diisi terlebih dahulu’)

(VIEW)

on_change=” onchange_alamat_invoice (partner_id)”

 

Sumber: Andhitia Rama