Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ

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"
Ảnh đại diện
Huỷ bỏ
Tác giả

SOLVED!

Bài viết liên quan Trả lời Lượt xem Hoạt động
4
thg 12 22
12210
2
thg 11 21
16368
1
thg 3 19
6861
1
thg 5 16
3090
1
thg 3 15
5681