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)
Crie uma conta hoje mesmo para aproveitar os recursos exclusivos e interagir com nossa incrível comunidade!
Inscrever-se| Publicações relacionadas | Respostas | Visualizações | Atividade | |
|---|---|---|---|---|
|
0
dez. 15
|
8847 | |||
|
5
nov. 15
|
7899 | |||
|
0
out. 17
|
12236 | |||
|
1
fev. 16
|
6004 | |||
|
Compute field V8
Resolvido
|
3
ago. 15
|
20648 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.