Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda

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"
Avatar
Buang
Penulis

SOLVED!

Post Terkait Replies Tampilan Aktivitas
4
Des 22
12174
2
Nov 21
16294
1
Mar 19
6819
1
Mei 16
3006
1
Mar 15
5610