From 937c881aaa746f267e00546b8da3be5be3515053 Mon Sep 17 00:00:00 2001 From: "Turkesh Patel (Open ERP)" Date: Thu, 13 Oct 2011 14:27:58 +0530 Subject: [PATCH] [FIX] Fixed the issue for confirmation popup when we delete a record from a list lp bug: https://launchpad.net/bugs/872708 fixed bzr revid: tpa@tinyerp.com-20111013085758-el0bn170ai0h6wfc --- addons/web/static/src/js/view_list.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/static/src/js/view_list.js b/addons/web/static/src/js/view_list.js index 0ea1f7ec944..dde99b459c5 100644 --- a/addons/web/static/src/js/view_list.js +++ b/addons/web/static/src/js/view_list.js @@ -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;