From 70833c2c922d74d75284bbd262ddc77fa6dbede2 Mon Sep 17 00:00:00 2001 From: niv-openerp Date: Mon, 12 Sep 2011 16:07:53 +0200 Subject: [PATCH] [fix] incorrect notifications in the o2m bzr revid: nicolas.vanhoren@openerp.com-20110912140753-h3e7e153yp0fmxrw --- addons/web/static/src/js/form.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/web/static/src/js/form.js b/addons/web/static/src/js/form.js index 0f17bcf811f..d419516dc77 100644 --- a/addons/web/static/src/js/form.js +++ b/addons/web/static/src/js/form.js @@ -384,9 +384,9 @@ openerp.web.FormView = openerp.web.View.extend( /** @lends openerp.web.FormView# }, on_saved: function(r, success) { if (!r.result) { - this.notification.warn(_t("Record not saved"), _t("Problem while saving record.")); + // should not happen in the server, but may happen for internal purpose } else { - console.debug(_.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); } @@ -408,7 +408,7 @@ openerp.web.FormView = openerp.web.View.extend( /** @lends openerp.web.FormView# */ on_created: function(r, success, prepend_on_create) { if (!r.result) { - this.notification.warn(_t("Record not created"), "Problem while creating record."); + // should not happen in the server, but may happen for internal purpose } else { this.datarecord.id = r.result; if (!prepend_on_create) {