コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1938 ビュー

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!



アバター
破棄
関連投稿 返信 ビュー 活動
1
11月 22
4252
2
8月 24
8424
0
6月 21
4670
0
8月 18
4448
0
5月 16
6315