Skip to Content
Menu
This question has been flagged
2002 Rodiniai

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!



Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
lapkr. 22
4309
2
rugp. 24
8471
0
birž. 21
4735
0
rugp. 18
4483
0
geg. 16
6365