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

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

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

相關帖文 回覆 瀏覽次數 活動
1
5月 19
3170
2
8月 18
3001
0
6月 16
4042
0
3月 15
3445
1
4月 22
5284