how to override the create function with the new api
I test this but does not work :
@api.one def create(self,vals): return super(<my_classe>,self).create(vals)
TypeError: create() takes exactly 2 arguments (1 given)
how to override the create function with the new api
I test this but does not work :
@api.one def create(self,vals): return super(<my_classe>,self).create(vals)
TypeError: create() takes exactly 2 arguments (1 given)
You use decorator @api.model.
@api.model
def create(self,vals):
....
return super(<my_classe>,self).create(vals)
Skapa ett konto idag för att ta del av exklusiva funktioner och engagera dig i vår fantastiska community!
Registrera dig| Relaterade inlägg | Svar | Vyer | Verksamhet | |
|---|---|---|---|---|
|
0
dec. 15
|
8885 | |||
|
5
nov. 15
|
7934 | |||
|
0
okt. 17
|
12286 | |||
|
1
feb. 16
|
6061 | |||
|
Compute field V8
Löst
|
3
aug. 15
|
20684 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.