我想问一下如何使用python将我的odoo上的状态从“已确认”更改为“进行中”我想要这样的代码:
models.execute_kw(db, uid, password, 'mrp.production', 'write', [[ids], {'state': "In Progress"}])
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'})
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.