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)
Özel özelliklerden yararlanmak ve harika topluluğumuzla etkileşime geçmek için bugün bir hesap oluşturun!
Üye Ol| İlgili Gönderiler | Cevaplar | Görünümler | Aktivite | |
|---|---|---|---|---|
|
0
Ara 15
|
8878 | |||
|
5
Kas 15
|
7930 | |||
|
0
Eki 17
|
12283 | |||
|
1
Şub 16
|
6050 | |||
|
Compute field V8
Çözüldü
|
3
Ağu 15
|
20680 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.