I think the problem is in write function. def write(self, cr, user, vals, context=None): vals['finalcode'] = vals['code1'] + vals['code2'] + vals['code3'] return super(person_code,self).create(cr, user, vals, context)
Write will send only changed value in vals. means if u have changed only code1 then it will send value of code1 in vals and remaining code2 and code3 will be False so you will get value of code1 in finalcode. better to make finalcode : fields.function and compute code in it. no need to override write and create too. ------------------------ OpenERP=Easier, Adaptable, Affordable, Modular -------------------- m2f -------------------- -- http://www.openobject.com/forum/viewtopic.php?p=41154#41154 -------------------- m2f -------------------- _______________________________________________ Tinyerp-users mailing list http://tiny.be/mailman2/listinfo/tinyerp-users
