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)
Erstellen Sie heute ein Konto, um exklusive Funktionen zu nutzen und mit unserer tollen Community zu interagieren!
Registrieren| Verknüpfte Beiträge | Antworten | Ansichten | Aktivität | |
|---|---|---|---|---|
|
0
Dez. 15
|
8855 | |||
|
5
Nov. 15
|
7904 | |||
|
0
Okt. 17
|
12239 | |||
|
1
Feb. 16
|
6013 | |||
|
Compute field V8
Gelöst
|
3
Aug. 15
|
20658 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.