How could I get the current ID of a record in Onchange Function? self._id, self.id, will give you an object like <openerp.models.NewId object at 0xb0efbc4c> , My question is Whether the onchange function fetching values from ENV instead of an valid record?
I am following new api
self._origin.id will solve your problem.
Reference: https://www.youtube.com/watch?v=eYVD_m6-jz8&t=4s