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
|
8824 | |||
|
5
нояб. 15
|
7884 | |||
|
0
окт. 17
|
12232 | |||
|
1
февр. 16
|
5975 | |||
|
Compute field V8
Решено
|
3
авг. 15
|
20627 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.