Hi
I wanted to create a M.O. using XMLRPC API, see code snippet below:
models.execute_kw(db, uid, password,
'mrp.production', 'create',
[{'product_id':1579,
'company_id':1,
'consumption': 'flexible',
'date_planned_start': '2021-08-01 09:00:00',
'location_dest_id': 8,
'location_src_id': 8,
'picking_type_id': 13,
'product_qty':1,
'product_uom_id':1,
'move_finished_ids': 301
}])
As part of the creation of the M.O. I want to add "301" to the move_finished_ids, this is the id of a stock.move record. I couldn't get this to work. I figured this might be because it is an one-to-many field so I followed the other posts and tried a few things, none seems to work.
Could anyone shed me the light of how to assign values to move_finished_ids when creating a new M.O. record?
Cheers
Yuan