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

I'm trying to override the method report_barcode of the class ReportController but it's not working. Can someone help me?

I don't get any error, it just continues to generate the barcode and doesn't print the message.

This is the code:


from openerp.addons.report.controllers.main import ReportController
from openerp.http import route

class ReportBarcodeController(ReportController):
    @route()
     def report_barcode(self, type, value, width=600, height=600, humanreadable=0):
                print "--------- OVERRIDE"
الصورة الرمزية
إهمال
الكاتب

SOLVED!

المنشورات ذات الصلة الردود أدوات العرض النشاط
4
ديسمبر 22
12197
2
نوفمبر 21
16354
1
مارس 19
6845
1
مايو 16
3045
1
مارس 15
5641