summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js
diff options
context:
space:
mode:
authorniv-openerp <nicolas.vanhoren@openerp.com>2011-09-12 16:07:53 +0200
committerniv-openerp <nicolas.vanhoren@openerp.com>2011-09-12 16:07:53 +0200
commit70833c2c922d74d75284bbd262ddc77fa6dbede2 (patch)
treed310b22500950380a483a9589e188f1f68715830 /addons/web/static/src/js
parentd1be801b9103d749848d4ef06d979cf54aa18594 (diff)
[fix] incorrect notifications in the o2m
bzr revid: nicolas.vanhoren@openerp.com-20110912140753-h3e7e153yp0fmxrw
Diffstat (limited to 'addons/web/static/src/js')
-rw-r--r--addons/web/static/src/js/form.js6
1 files 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) {