コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
3435 ビュー

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' ,[])
アバター
破棄
関連投稿 返信 ビュー 活動
2
10月 21
3507
1
2月 16
5380
2
3月 15
4286
1
3月 15
10241
0
7月 25
180