تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
8887 أدوات العرض

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
مايو 20
7003
1
يناير 16
5278
2
نوفمبر 15
8186
0
مارس 25
1296
0
يناير 25
3406