[FIX] missing confirmation message handling on listview buttons

lp bug: https://launchpad.net/bugs/903209 fixed

bzr revid: xmo@openerp.com-20111213081038-sq5p1a2lsodieito
This commit is contained in:
Xavier Morel 2011-12-13 09:10:38 +01:00
parent 7f234ca7e9
commit fb4db0666f
1 changed files with 3 additions and 0 deletions

View File

@ -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({