Skip to Content
Menu
This question has been flagged

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"
Portretas
Atmesti
Autorius

SOLVED!

Related Posts Replies Rodiniai Veikla
4
gruod. 22
12245
2
lapkr. 21
16407
1
kov. 19
6906
1
geg. 16
3125
1
kov. 15
5735