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)
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
ديسمبر 15
|
8855 | |||
|
5
نوفمبر 15
|
7905 | |||
|
0
أكتوبر 17
|
12240 | |||
|
1
فبراير 16
|
6017 | |||
|
Compute field V8
تم الحل
|
3
أغسطس 15
|
20658 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.