Odoo Help


Inherit openerp controller

Jose Angel Inda Herrera
on 1/31/14, 11:46 AM 1,758 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

See this: http://help.openerp.com/question/49114/why-does-web-controller-inheritance-does-not-work/?answer=49248#post-id-49248

Andrius Preimantas
on 4/10/14, 8:12 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.


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:46 AM
Seen: 1758 times
Last updated: 3/16/15, 8:10 AM