[IMP] views: configure display elements when action target is 'inline'

bzr revid: rco@openerp.com-20120405101823-q5ql9oma6vuf35hl
This commit is contained in:
Raphael Collet 2012-04-05 12:18:23 +02:00
parent 6f24433aef
commit e472bc2755
1 changed files with 6 additions and 5 deletions

View File

@ -112,12 +112,13 @@ session.web.ActionManager = session.web.OldWidget.extend({
}
var type = action.type.replace(/\./g,'_');
var popup = action.target === 'new';
var inline = action.target === 'inline';
action.flags = _.extend({
views_switcher : !popup,
search_view : !popup,
action_buttons : !popup,
sidebar : !popup,
pager : !popup,
views_switcher : !popup && !inline,
search_view : !popup && !inline,
action_buttons : !popup && !inline,
sidebar : !popup && !inline,
pager : !popup && !inline,
display_title : !popup
}, action.flags || {});
if (!(type in this)) {