In thread we have to move on .py file and after this using thread you have to create you own cursor and initiate a new environment for each thread. committing is done by committing the cursor,For example you can see below code.
Environment.manage(): # class function
env = Environment(cr, uid, context)
Note- if you need to use the thread in your code (e.g. for a sql query) you should check if it is available or not.
0 Comment(s)