Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Asking to process your request in Odoo server

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 181
    Comment on it

    This action ask the upgrade platform to process your database dump.
    The process method is below

    Use the below link to download the Dump Database
    https://upgrade.odoo.com/database/v1/process
    To process a database dump
    Below are the Parameters
    1-key (str) -- (required) your private key
    2-request (str) -- (required) your request id

    Below are the predefined keywords in dump database Returns
    request result
    Return type
    json dictionary

    Example code is below-

    1. from urllib import urlencode
    2. from io import BytesIO
    3. import pycurl
    4. import json
    5.  
    6. PROCESS_URL = "https://upgrade.odoo.com/database/v1/process"
    7.  
    8. fields = dict([
    9. ('request', '10534'),
    10. ('key', 'Aw7pItGVKFuZ_FOR3U8VFQ=='),
    11. ])
    12. postfields = urlencode(fields)
    13.  
    14. c = pycurl.Curl()
    15. c.setopt(pycurl.URL, PROCESS_URL)
    16. c.setopt(c.POSTFIELDS, postfields)
    17. data = BytesIO()
    18. c.setopt(c.WRITEFUNCTION, data.write)
    19. c.perform()
    20.  
    21. # transform output into a dict:
    22. response = json.loads(data.getvalue())
    23.  
    24. # get http status:
    25. http_code = c.getinfo(pycurl.HTTP_CODE)
    26. c.close()

    Note-The request id and the private key are obtained using the process your request in Odoo server .

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Reset Password
Fill out the form below and reset your password: