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?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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' ,[])
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrirePublications associées | Réponses | Vues | Activité | |
---|---|---|---|---|
|
2
oct. 21
|
3507 | ||
|
1
févr. 16
|
5380 | ||
|
2
mars 15
|
4286 | ||
|
1
mars 15
|
10241 | ||
|
0
juil. 25
|
179 |