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)
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อ| Related Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
|---|---|---|---|---|
|
0
ธ.ค. 15
|
7815 | |||
|
5
พ.ย. 15
|
6737 | |||
|
0
ต.ค. 17
|
10828 | |||
|
1
ก.พ. 16
|
4853 | |||
|
Compute field V8
แก้ไขแล้ว
|
3
ส.ค. 15
|
19774 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.