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

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!

Related Posts ตอบกลับ มุมมอง กิจกรรม
4
ธ.ค. 22
12206
2
พ.ย. 21
16363
1
มี.ค. 19
6857
1
พ.ค. 16
3064
1
มี.ค. 15
5667