Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
3616 Visualizzazioni

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
Abbandona
Autore

SOLVED!

Post correlati Risposte Visualizzazioni Attività
4
dic 22
12168
2
nov 21
16284
1
mar 19
6814
1
mag 16
3003
1
mar 15
5607