콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다

I need call the method "button_block" of model "mrp.workcenter.productivity" using XMLRPC because I want block a workorder using my raspberry pi. I need help because i don't know how I can pass the parameter "loss_id" to block the workorder. I don´t know how pass the "loss_id" parameter to the method "button_block".

I'm using python 3.7.4, my code is this:

from xmlrpc import client as xmlrpclib 

url= 'http://localhost:8069'
db='TFG_Sergio_pruebas'
username='user'
password='pass'

common = xmlrpclib.ServerProxy('{}/xmlrpc/2/common'.format(url))
models = xmlrpclib.ServerProxy('{}/xmlrpc/2/object'.format(url))
uid = common.login(db, username, password)

bloquear_ct= models.execute_kw(db,uid,password,
'mrp.workcenter.productivity','button_block',[6*],{})
print(bloquear_ct)
  

I think that I need write something here*

아바타
취소
관련 게시물 답글 화면 활동
Timezone on XMLRPC 해결 완료
2
9월 19
5356
4
1월 19
14491
4
12월 19
7883
1
7월 18
7358
2
12월 19
22914