Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- url = "http://192.168.99.100:8069"
- db = "bevepe"
- username = "admin"
- password = "XR6e%naysv;c"
- common = xmlrpclib.ServerProxy('{}/xmlrpc/2/common'.format(url))
- uid = common.authenticate(db, username, password, {})
- models = xmlrpclib.ServerProxy('{}/xmlrpc/2/object'.format(url))
- id = models.execute_kw(db, uid, password, 'product.template', 'write', [[12851], {
- 'company_product': [(6,0, [1,3,4])]
- }])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement