Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
3491 Представления

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
3575
1
февр. 16
5452
2
мар. 15
4339
1
мар. 15
10284
0
июл. 25
242