跳至内容
菜单
此问题已终结
1 回复
7556 查看

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
6844
5
11月 15
5721
0
10月 17
9521
1
2月 16
3893
3
8月 15
18823