[FIX] Fixed bug in the bar that used to be called 'sidebar' but could not be named 'topbar' neither because there's already a 'topbar' item. Let's call it 'foobar'

bzr revid: fme@openerp.com-20120410142737-la6yhjfo8hkfpwuq
This commit is contained in:
Fabien Meghazi
2012-04-10 16:27:37 +02:00
parent f61cd197b6
commit e922d9df97
+1 -1
View File
@@ -834,7 +834,7 @@ session.web.Sidebar = session.web.Widget.extend({
self.getParent().sidebar_context().then(function (context) {
var ids = self.getParent().get_selected_ids();
if (ids.length == 0) {
openerp.web.dialog($("<div />").text(_t("You must choose at least one record.")), { title: _t("Warning"), modal: true });
session.web.dialog($("<div />").text(_t("You must choose at least one record.")), { title: _t("Warning"), modal: true });
return false;
}
var additional_context = _.extend({