Odoo Help

1

target: "current" is not working from JS do_action().

By
Ajay Vahan
on 6/14/16, 7:27 AM 752 views

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

0
Axel Mendoza
On 6/16/16, 12:42 PM

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.

Ajay Vahan
on 6/22/16, 7:39 AM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

3 follower(s)

Stats

Asked: 6/14/16, 7:27 AM
Seen: 752 times
Last updated: 6/22/16, 7:35 AM