Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
3451 Переглядів

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?


Аватар
Відмінити
Найкраща відповідь

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

models.execute_kw(dbname, uid, password,    'my.model', 'do_stuff' ,[])
Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
2
жовт. 21
3529
1
лют. 16
5403
2
бер. 15
4297
1
бер. 15
10250
0
лип. 25
204