Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to update records in OpenERP/Odoo ?

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 674
    Comment on it

    In update records can be updated using write(), it takes a list of records to update and a mapping of updated fields to values similar to create() .for example code is like below.

    models.execute_kw(db, uid, password, 'res.partner', 'write', [[id], {
        'name': "Newer partner"
    }])
    # get record name after having changed it
    models.execute_kw(db, uid, password, 'res.partner', 'name_get', [[id]])
    
    

    Note- Update will all get the same values for the fields being set.

 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: