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)
Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!
Aanmelden| Gerelateerde posts | Antwoorden | Weergaven | Activiteit | |
|---|---|---|---|---|
|
0
dec. 15
|
8820 | |||
|
5
nov. 15
|
7883 | |||
|
0
okt. 17
|
12230 | |||
|
1
feb. 16
|
5966 | |||
|
Compute field V8
Opgelost
|
3
aug. 15
|
20623 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.