[imp] added warning when no item selected in reports
bzr revid: nicolas.vanhoren@openerp.com-20110907132810-q0norgc0qrlvg3hs
This commit is contained in:
parent
b4694f6a91
commit
51d0c0037b
|
@ -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 = {
|
||||
|
|
Loading…
Reference in New Issue