Skip to Content
मेन्यू
This question has been flagged
1 Reply
7636 Views

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
Discard
Best Answer

You use decorator @api.model.

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


Avatar
Discard
Related Posts Replies Views Activity
0
दिस॰ 15
6934
5
नव॰ 15
5797
0
अक्तू॰ 17
9595
1
फ़र॰ 16
3970
3
अग॰ 15
18911