Permalink
Browse files

[FIX]web: Fix traceback

  • Loading branch information...
msh-odoo committed Jan 11, 2019
1 parent aa1794a commit 0d501b9109cbd95227ce8ad2f793da92543926c3
Showing with 11 additions and 9 deletions.
  1. +11 −9 addons/web/static/src/js/views/form/form_renderer.js
@@ -120,15 +120,17 @@ var FormRenderer = BasicRenderer.extend({
*/
displayTranslationAlert: function () {
this.$('.o_notification_box').remove();
var $notification = $(qweb.render('notification-box', {type: 'info'}))
.append(qweb.render('translation-alert', {
fields: this.alertFields[this.state.res_id],
lang: _t.database.parameters.name
}));
if (this.$('.o_form_statusbar').length) {
this.$('.o_form_statusbar').after($notification);
} else {
this.$el.prepend($notification);
if (this.alertFields[this.state.res_id]) {
var $notification = $(qweb.render('notification-box', {type: 'info'}))
.append(qweb.render('translation-alert', {
fields: this.alertFields[this.state.res_id],
lang: _t.database.parameters.name
}));
if (this.$('.o_form_statusbar').length) {
this.$('.o_form_statusbar').after($notification);
} else {
this.$el.prepend($notification);
}
}
},
/**

0 comments on commit 0d501b9

Please sign in to comment.