Skip to Content
मेन्यू
This question has been flagged
1 Reply
3437 Views

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
Discard
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
Discard
Related Posts Replies Views Activity
2
अक्तू॰ 21
3510
1
फ़र॰ 16
5382
2
मार्च 15
4287
1
मार्च 15
10243
0
जुल॰ 25
184