Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
7723 Tampilan

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
Buang
Jawaban Terbai

You use decorator @api.model.

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


Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
0
Des 15
7007
5
Nov 15
5843
0
Okt 17
9697
1
Feb 16
4024
Compute field V8 Diselesaikan
3
Agu 15
18979