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)
Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!
Registrati| Post correlati | Risposte | Visualizzazioni | Attività | |
|---|---|---|---|---|
|
0
dic 15
|
8835 | |||
|
5
nov 15
|
7893 | |||
|
0
ott 17
|
12234 | |||
|
1
feb 16
|
5990 | |||
|
Compute field V8
Risolto
|
3
ago 15
|
20640 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.