Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
4007 Prikazi

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
Opusti

Did you find any answer for this?

Related Posts Odgovori Prikazi Aktivnost
1
maj 19
3143
2
avg. 18
2946
0
mar. 15
3426
0
mar. 15
4501
1
apr. 22
5260