[ADD] confirmation popup when deleting an element from the list view

bzr revid: xmo@openerp.com-20111017115117-0mas0bkdbkq0yku6
This commit is contained in:
Xavier Morel
2011-10-17 13:51:17 +02:00
+1 -1
View File
@@ -463,7 +463,7 @@ openerp.web.ListView = openerp.web.View.extend( /** @lends openerp.web.ListView#
* @param {Array} ids the ids of the records to delete
*/
do_delete: function (ids) {
if (!ids.length) {
if (!ids.length || !confirm(" Are you sure to remove those records ?")) {
return;
}
var self = this;