After connecting to the server using "xmlrpc" and following the instructions from here (https://www.odoo.com/documentation/8.0/api_integration.html), I try to change the value of the "route_ids" (Procurement -> Supply Chain Information -> Routes) so none of the three options (Manufacture, Buy, Make To Order) is selected.
First I take the current values:
>>> models.execute_kw(db, uid, password,
... 'product.template', 'read',
... [125], {'fields': ['route_ids']})
{'route_ids': [5, 6, 1], 'id': 125}
Then I attempt to update the values:
>>> models.execute_kw(db, uid, password, 'product.template', 'write',
... [[125], {'route_ids': []}])
True
And finally I check whether the values have been updated or not:
>>> models.execute_kw(db, uid, password,
... 'product.template', 'read',
... [125], {'fields': ['route_ids']})
{'route_ids': [5, 6, 1], 'id': 125}
Any idea why this does not work? I got the same results, i.e. no change, when I tried to change the 'display_name' but when I tried to change the 'weight_net' everything works fine. Any ideas?