コンテンツへスキップ
メニュー
この質問にフラグが付けられました

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!

関連投稿 返信 ビュー 活動
4
12月 22
12174
2
11月 21
16292
1
3月 19
6818
1
5月 16
3006
1
3月 15
5609