Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
4531 Lượt xem

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
Ảnh đại diện
Huỷ bỏ

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 5 19
3170
2
thg 8 18
3003
0
thg 6 16
4043
0
thg 3 15
3445
1
thg 4 22
5286