Skip to Content
Menú
This question has been flagged
1 Respondre
3458 Vistes

I have a method in a model with this signature:

@api.model
def do_stuff(self, arg1):
...


The method expects a singleton therefore I must pass an ID when calling it. How can I pass the object ID when in the web service calls?


Avatar
Descartar
Best Answer

while calling these method decorated with @api.model just pass the blank list like 

models.execute_kw(dbname, uid, password,    'my.model', 'do_stuff' ,[])
Avatar
Descartar
Related Posts Respostes Vistes Activitat
2
d’oct. 21
3536
1
de febr. 16
5410
2
de març 15
4303
1
de març 15
10266
0
de jul. 25
210