update selection field using xml-rpc

736 views Asked by At

i want to ask how can i change state on my odoo from 'confirmed' to 'In progress' using python i want code like this:

models.execute_kw(db, uid, password, 'mrp.production', 'write', [[ids], {'state': "In Progress"}])
1

There are 1 answers

1
Nish On

We need to provide value of state field which has stored in database.

Try with following code:

models.execute_kw(db, uid, password, 'mrp.production', 'write', [ids], {'state': 'progress'})