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

I'm  trying to open tree view from JS. I'm able to open a pop up with target: "new", but when given as target: "current" its just showing loading symbol on the top but its not opening the view in current page. Any help would be appreciated.

Here is my code:

var action = {

name: "student details",

context: this.session.user_context,

res_model: 'student.details',

views: [[false, 'list']],

type: 'ir.actions.act_window',

target: "current",

auto_search : true,

flags: {

sidebar: false,

deletable: false,

views_switcher: false,

action_buttons: false,

search_view: false,

pager: false,

radio: true,

}

};

var am = new openerp.web.ActionManager(this);

am.do_action(action);


Thanks :)

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Change "current" for "inline" and it will work ok

Ảnh đại diện
Huỷ bỏ
Tác giả

hey, Axel

thanks for your reply, I have tried that already it doesn't work. It just showing loading symbol and doing nothing as usual. Only target= new is working.

odoo14. The same problem here. only new is working. inline and current have no effect.

Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 5 20
6896
1
thg 1 16
5214
2
thg 11 15
8112
0
thg 3 25
1261
0
thg 1 25
3302