跳至內容
選單
此問題已被標幟
1 回覆
8812 瀏覽次數

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 :)

頭像
捨棄
最佳答案

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

頭像
捨棄
作者

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.

相關帖文 回覆 瀏覽次數 活動
3
5月 20
6891
1
1月 16
5204
2
11月 15
8095
0
3月 25
1224
0
1月 25
3284