Hello,
No need to delete the code ...You can do like this
def calcular_iess(self, cr, uid, ids, context={}):
contract = self.browse(cr, uid, ids)[0]
self.pool.get('hr.contract').write(cr, uid, [contract.id], {'iess':
contract.poner_valor})
And for on_change it will call the method only when you change the value of
that field..
so putting on change is not recommended for your task.
------------------------
Regards,
Naresh Choksy
-------------------- m2f --------------------
--
http://www.openobject.com/forum/viewtopic.php?p=29900#29900
-------------------- m2f --------------------
_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman/listinfo/tinyerp-users