def onchange_resvalue(self, cr, uid, ids, iscopy, description, context=None):
context = context or {}
v = {}
if iscopy:
v['res_val'] = description
return {'value': v}
<field name="iscopy" on_change="onchange_restime(iscopy, description)"/>
<field name="description" on_change="onchange_restime(iscopy, description)"/>
<field name="res_val"/>
In the New record (not save in db) above on change method How to get res_val previous value entered by the user? For example in the above code working in the way, 1) If user Entered res_val output value 2) And then user checked iscopy boolean field it will copy the res_val into description 3) And again unchecked how to shows previous value entered by the user.