Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
3448 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
říj 21
3529
1
úno 16
5400
2
bře 15
4296
1
bře 15
10249
0
čvc 25
204