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)
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký| Bài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
|---|---|---|---|---|
|
0
thg 12 15
|
8830 | |||
|
5
thg 11 15
|
7893 | |||
|
0
thg 10 17
|
12232 | |||
|
1
thg 2 16
|
5982 | |||
|
Compute field V8
Đã xử lý
|
3
thg 8 15
|
20634 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.