Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to use thread in Odoo ?

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 1.97k
    Comment on it

    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)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: