Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1900 Prikazi

Dear All,

I am trying to create a line in the model mrp.routing.workcenter with my python code, using XMLRPC. 


This is what I have so far:

​routingWorkcenterLine= {

​'name': nameOperation,

​'workcenter_id': workcenter_id,

​'bom_id': idBom,

​'blocked_by_operation_ids': [(4, blockOperationId, 0)]                                          

}

id = models.execute_kw(db, uid, password, 'mrp.routing.workcenter', 'create', [routingWorkcenterLine])


The problem I have is with the field 'blocked_by_operation_ids'. When running this Python code, the field 'blocked_by_operation_ids' is not getting a value. 

So when I create two operation, I want the second one to be blocked by the first operation.


Thank you!



Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
nov. 22
4235
2
avg. 24
8399
0
jun. 21
4653
0
avg. 18
4428
0
maj 16
6303