Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
4323 มุมมอง

Hello

I found an error but I don't know how to fix it.

In my increment code I am using an Integer ticketnumber but super() doesn't like this :


File "/home/vagrant/addons/helpdesk/helpdesk.py", line 27, in create

return super(helpdesk.ticketnumber, self).create(cr, uid, vals, context=context)

TypeError: must be type, not Integer


Try changing it to a char but it says "must be type, not Char"..

What type must it be?

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

Never mind.. Got it to work

I had helpdesk.ticketnumber instead of using the class helpdesk

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ธ.ค. 24
3795
0
พ.ย. 24
1568
2
ก.ค. 24
3197
0
เม.ย. 24
2095
3
มี.ค. 24
1918