[imp] removed a lot of useless notifications

bzr revid: nicolas.vanhoren@openerp.com-20110912135603-fai75jzwgbyalnwz
This commit is contained in:
niv-openerp 2011-09-12 15:56:03 +02:00
parent 14f1cbe35f
commit d1be801b91
3 changed files with 7 additions and 10 deletions

View File

@ -892,7 +892,7 @@ openerp.web.WebClient = openerp.web.Widget.extend(/** @lends openerp.web.WebClie
this.session.start();
this.login.start();
this.menu.start();
this.notification.notify("OpenERP Client", "The openerp client has been initialized.");
console.debug("The openerp client has been initialized.");
},
on_logged: function() {
if(this.action_manager)

View File

@ -777,9 +777,6 @@ openerp.web.SessionAware = openerp.web.CallbackEnabled.extend(/** @lends openerp
if(body) {
$('<pre></pre>').text(v).appendTo($('body'));
}
if(notify && this.notification) {
this.notification.notify("Logging:",v);
}
}
}
}

View File

@ -386,7 +386,7 @@ openerp.web.FormView = openerp.web.View.extend( /** @lends openerp.web.FormView#
if (!r.result) {
this.notification.warn(_t("Record not saved"), _t("Problem while saving record."));
} else {
this.notification.notify(_t("Record saved"), _.sprintf(_("The record #%s has been saved.") + this.datarecord.id));
console.debug(_.sprintf("The record #%s has been saved." + this.datarecord.id));
if (success) {
success(r);
}
@ -422,7 +422,7 @@ openerp.web.FormView = openerp.web.View.extend( /** @lends openerp.web.FormView#
if (this.sidebar) {
this.sidebar.attachments.do_update();
}
this.notification.notify(_t("Record created"), "The record has been created with id #" + this.datarecord.id);
console.debug("The record has been created with id #" + this.datarecord.id);
if (success) {
success(_.extend(r, {created: true}));
}
@ -430,13 +430,13 @@ openerp.web.FormView = openerp.web.View.extend( /** @lends openerp.web.FormView#
}
},
do_search: function (domains, contexts, groupbys) {
this.notification.notify("Searching form");
console.debug("Searching form");
},
on_action: function (action) {
this.notification.notify('Executing action ' + action);
console.debug('Executing action', action);
},
do_cancel: function () {
this.notification.notify("Cancelling form");
console.debug("Cancelling form");
},
reload: function() {
if (this.dataset.index == null || this.dataset.index < 0) {
@ -2412,7 +2412,7 @@ openerp.web.form.FieldBinary = openerp.web.form.Field.extend({
if (size === false) {
this.notification.warn("File Upload", "There was a problem while uploading your file");
// TODO: use openerp web crashmanager
this.log("Error while uploading file : ", name);
console.warn("Error while uploading file : ", name);
} else {
this.on_file_uploaded_and_valid.apply(this, arguments);
this.on_ui_change();