Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
8835 มุมมอง

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.

Related Posts ตอบกลับ มุมมอง กิจกรรม
3
พ.ค. 20
6898
Redefine Web chrome.js and view_form.js แก้ไขแล้ว
1
ม.ค. 16
5216
2
พ.ย. 15
8122
0
มี.ค. 25
1262
0
ม.ค. 25
3305