Odoo Help


Inherit openerp controller

Jose Angel Inda Herrera
on 1/31/14, 12:45 PM 886 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, 12:45 PM
Seen: 886 times
Last updated: 3/16/15, 8:10 AM