diff options
| author | niv-openerp <nicolas.vanhoren@openerp.com> | 2011-05-03 16:08:05 +0200 |
|---|---|---|
| committer | niv-openerp <nicolas.vanhoren@openerp.com> | 2011-05-03 16:08:05 +0200 |
| commit | 2a5ff32ea16a5c2f164b0a48b936b5dbcef87420 (patch) | |
| tree | 69285b4daa5c3816cec1ea3fd4298db4cc82cd90 /addons/base/static/src/js | |
| parent | abd08b620e65423abf9cae1a76f4b8c1e9711bab (diff) | |
| parent | 1c32950e4310f1be256680b329babd8c83696f11 (diff) | |
[MERGE]
bzr revid: nicolas.vanhoren@openerp.com-20110503140805-ymayc02xkkycogyr
Diffstat (limited to 'addons/base/static/src/js')
| -rw-r--r-- | addons/base/static/src/js/views.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/addons/base/static/src/js/views.js b/addons/base/static/src/js/views.js index 8b29850d071..7af2e6b38e9 100644 --- a/addons/base/static/src/js/views.js +++ b/addons/base/static/src/js/views.js @@ -17,6 +17,8 @@ openerp.base.ActionManager = openerp.base.Controller.extend({ /** * Process an action * Supported actions: act_window + * + * If the action contains a 'no_sidebar' key, the resulting view will never contain a sidebar. */ do_action: function(action) { var self = this; @@ -42,7 +44,11 @@ openerp.base.ActionManager = openerp.base.Controller.extend({ if (this.viewmanager) { this.viewmanager.stop(); } - this.viewmanager = new openerp.base.ViewManagerAction(this.session, this.element_id, action, true); + var sidebar = true; + if(action.no_sidebar) { + sidebar = false; + } + this.viewmanager = new openerp.base.ViewManagerAction(this.session, this.element_id, action, sidebar); this.viewmanager.start(); } break; |
