跳至內容
選單
此問題已被標幟
3982 瀏覽次數

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
頭像
捨棄

Did you find any answer for this?

相關帖文 回覆 瀏覽次數 活動
1
5月 19
3111
2
8月 18
2912
0
3月 15
3397
0
3月 15
4480
1
4月 22
5240