diff options
| author | Xavier Morel <xmo@openerp.com> | 2011-12-13 09:10:38 +0100 |
|---|---|---|
| committer | Xavier Morel <xmo@openerp.com> | 2011-12-13 09:10:38 +0100 |
| commit | fb4db0666f71d9e996e97bc504d38012f179fca2 (patch) | |
| tree | 3c52c751c45886398835c3d9eba53121d63ebd2b /addons/web/static/src/js | |
| parent | 7f234ca7e9f0cba9d749f1fd8a435f333e0c3882 (diff) | |
[FIX] missing confirmation message handling on listview buttons
lp bug: https://launchpad.net/bugs/903209 fixed
bzr revid: xmo@openerp.com-20111213081038-sq5p1a2lsodieito
Diffstat (limited to 'addons/web/static/src/js')
| -rw-r--r-- | addons/web/static/src/js/view_list.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/addons/web/static/src/js/view_list.js b/addons/web/static/src/js/view_list.js index 5473e2ababe..f7a7abe25ce 100644 --- a/addons/web/static/src/js/view_list.js +++ b/addons/web/static/src/js/view_list.js @@ -528,6 +528,9 @@ openerp.web.ListView = openerp.web.View.extend( /** @lends openerp.web.ListView# return field.name === name; }); if (!action) { return; } + if ('confirm' in action && !window.confirm(action.confirm)) { + return; + } var c = new openerp.web.CompoundContext(); c.set_eval_context(_.extend({ |
