Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
3985 Переглядів

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
12605
2
лист. 21
16719
1
бер. 19
7270
1
трав. 16
3470
1
бер. 15
6122