Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
7557 Visualizações

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)  

Avatar
Cancelar
Melhor resposta

You use decorator @api.model.

@api.model def create(self,vals):
....
return super(<my_classe>,self).create(vals)


Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
0
dez. 15
6849
5
nov. 15
5722
0
out. 17
9522
1
fev. 16
3894
3
ago. 15
18823