When we are using cursor we should use current environment cursor:
like below code.
self.env.cr
except if we need to use threads,we use like below code.
 Environment.manage(): 
env = Environment(cr, uid, context)
Note- Environment.manage() indicate the class function 
                       
                    
0 Comment(s)