Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
3436 Tampilan

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
Buang
Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
2
Okt 21
3508
1
Feb 16
5380
2
Mar 15
4286
1
Mar 15
10241
0
Jul 25
181