[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:
parent
7f234ca7e9
commit
fb4db0666f
|
@ -528,6 +528,9 @@ openerp.web.ListView = openerp.web.View.extend( /** @lends openerp.web.ListView#
|
||||||
return field.name === name;
|
return field.name === name;
|
||||||
});
|
});
|
||||||
if (!action) { return; }
|
if (!action) { return; }
|
||||||
|
if ('confirm' in action && !window.confirm(action.confirm)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var c = new openerp.web.CompoundContext();
|
var c = new openerp.web.CompoundContext();
|
||||||
c.set_eval_context(_.extend({
|
c.set_eval_context(_.extend({
|
||||||
|
|
Loading…
Reference in New Issue