Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
7475 Vistas

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
Descartar
Mejor respuesta

You use decorator @api.model.

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


Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
0
dic 15
6729
5
nov 15
5632
0
oct 17
9358
1
feb 16
3771
3
ago 15
18742