diff options
| author | Martin Trigaux <mat@odoo.com> | 2014-11-04 17:17:45 +0100 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2014-11-04 17:25:21 +0100 |
| commit | 42cdf0071e7471a682b6af5de530eb9b1f8e5dff (patch) | |
| tree | 88b0d8c1a2394d807cc160e949428148f0de674f /addons/web/static/src/js | |
| parent | 5035c76f42bc2999c24e4943ee27f96ee426d47c (diff) | |
[FIX] web: keep pager in popup list view
When an action opens records in list (or other) mode in a popup (target:new), the pager should be kept. It can be removed in form view.
Fixes #742
Diffstat (limited to 'addons/web/static/src/js')
| -rw-r--r-- | addons/web/static/src/js/views.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/web/static/src/js/views.js b/addons/web/static/src/js/views.js index 1fac5794679..5fa3c8fb290 100644 --- a/addons/web/static/src/js/views.js +++ b/addons/web/static/src/js/views.js @@ -333,12 +333,13 @@ instance.web.ActionManager = instance.web.Widget.extend({ var type = action.type.replace(/\./g,'_'); var popup = action.target === 'new'; var inline = action.target === 'inline' || action.target === 'inlineview'; + var form = _.str.startsWith(action.view_mode, 'form'); action.flags = _.defaults(action.flags || {}, { views_switcher : !popup && !inline, search_view : !popup && !inline, action_buttons : !popup && !inline, sidebar : !popup && !inline, - pager : !popup && !inline, + pager : (!popup || !form) && !inline, display_title : !popup, search_disable_custom_filters: action.context && action.context.search_disable_custom_filters }); |
