تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
4326 أدوات العرض

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

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
ديسمبر 24
3823
0
نوفمبر 24
1576
2
يوليو 24
3209
0
أبريل 24
2104
3
مارس 24
1955