Odoo Help


Override ReportController class

Jeferson M. Moreira
on 9/19/16, 5:05 AM 260 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):
     def report_barcode(self, type, value, width=600, height=600, humanreadable=0):
                print "--------- OVERRIDE"


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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

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.


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)


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