[FIX] replaced all cr, uid with self._cr and self.pool.get with self.env