1

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 Answers1

1

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'})
Bhavesh Odedra
  • 10,990
  • 12
  • 33
  • 58
Nish
  • 36
  • 3
  • thnx you for your help, but got this error: in call_kw_multi\nTypeError: write() got an unexpected keyword argument \'state\'\n'> – Moatez Temani Feb 20 '18 at 16:14