コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
7547 ビュー

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)


アバター
破棄
関連投稿 返信 ビュー 活動
0
12月 15
6832
5
11月 15
5711
0
10月 17
9517
1
2月 16
3860
3
8月 15
18816