Odoo Help

0

Override ReportController class

By
Jeferson M. Moreira
on 9/19/16, 5:05 AM 320 views

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!

Jeferson M. Moreira
on 9/19/16, 7:22 AM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 9/19/16, 5:05 AM
Seen: 320 times
Last updated: 9/19/16, 5:11 AM