Skip to Content
मेन्यू
This question has been flagged
3954 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
मई 19
3068
2
अग॰ 18
2895
0
मार्च 15
3370
0
मार्च 15
4448
1
अप्रैल 22
5213