[imp] added warning when no item selected in reports

bzr revid: nicolas.vanhoren@openerp.com-20110907132810-q0norgc0qrlvg3hs
This commit is contained in:
niv-openerp 2011-09-07 15:28:10 +02:00
parent b4694f6a91
commit 51d0c0037b
1 changed files with 4 additions and 1 deletions

View File

@ -444,7 +444,10 @@ openerp.web.Sidebar = openerp.web.Widget.extend({
if (item.action) {
var ids = self.widget_parent.get_selected_ids();
if (ids.length == 0) {
//TODO niv: maybe show a warning?
$("<div />").text(_t("You must choose at least one record.")).dialog({
title: _t("Warning"),
modal: true
});
return false;
}
var additional_context = {