Odoo Help


Inherit openerp controller

Jose Angel Inda Herrera
on 1/31/14, 11:55 AM 1,216 views

How I can inherit openerp web controller, for example,

from addons import web main = web.controllers.main class DataSet_inherit(main.DataSet): _cp_path = "/web/dataset"

def call_button(self, req, model, method, args, domain_id=None, context_id=None):
    print "Inherit"
    return 2

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

0 follower(s)


Asked: 1/31/14, 11:55 AM
Seen: 1216 times
Last updated: 6/22/16, 10:24 AM