From e472bc2755625029e6bc58686c7203156054cf86 Mon Sep 17 00:00:00 2001 From: Raphael Collet Date: Thu, 5 Apr 2012 12:18:23 +0200 Subject: [PATCH] [IMP] views: configure display elements when action target is 'inline' bzr revid: rco@openerp.com-20120405101823-q5ql9oma6vuf35hl --- addons/web/static/src/js/views.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/addons/web/static/src/js/views.js b/addons/web/static/src/js/views.js index 43ecc8444fc..cfc09a0fb4e 100644 --- a/addons/web/static/src/js/views.js +++ b/addons/web/static/src/js/views.js @@ -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)) {