Skip to Content
Menu
This question has been flagged
3937 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"

@openerpweb.jsonrequest
def call_button(self, req, model, method, args, domain_id=None, context_id=None):
    print "Inherit"
    return 2
Avatar
Discard

Did you find any answer for this?

Related Posts Replies Views Activity
1
May 19
3039
2
Aug 18
2882
0
Mar 15
3349
0
Mar 15
4427
1
Apr 22
5197