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)
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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
12월 15
|
7683 | |||
|
5
11월 15
|
6601 | |||
|
0
10월 17
|
10555 | |||
|
1
2월 16
|
4732 | |||
|
Compute field V8
해결 완료
|
3
8월 15
|
19637 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.