Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
7555 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
6844
5
Nov 15
5721
0
Okt 17
9521
1
Feb 16
3893
Compute field V8 Diselesaikan
3
Agu 15
18823