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' ,[])
Create an account today to enjoy exclusive features and engage with our awesome community!
Registracija| Related Posts | Replies | Rodiniai | Veikla | |
|---|---|---|---|---|
|
0
spal. 25
|
7 | |||
|
2
spal. 21
|
4304 | |||
|
1
vas. 16
|
6304 | |||
|
1
kov. 15
|
11128 | |||
|
2
kov. 15
|
5081 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.