Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
3477 Visninger

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
Kassér
Bedste svar

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
Kassér
Related Posts Besvarelser Visninger Aktivitet
2
okt. 21
3557
1
feb. 16
5425
2
mar. 15
4327
1
mar. 15
10274
0
jul. 25
225