Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Calling methods in Odoo9

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 301
    Comment on it

    With the help of call method we have to create xmlrpc/2/object, it is used to call methods of odoo models and send value in database.
    For example you can see below code and use in your odoo module.

    models = xmlrpclib.ServerProxy('{}/xmlrpc/2/object'.format(url))
    models.execute_kw(db, uid, password,
        'res.partner', 'check_access_rights',
        ['read'], {'raise_exception': False})
    true

    Note-With this code we can create an array/list of parameters passed by position only.

 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: