diff --git a/addons/point_of_sale/static/src/js/screens.js b/addons/point_of_sale/static/src/js/screens.js index 169940e5061..97e822bf675 100644 --- a/addons/point_of_sale/static/src/js/screens.js +++ b/addons/point_of_sale/static/src/js/screens.js @@ -351,9 +351,14 @@ function openerp_pos_screens(instance, module){ //module is instance.point_of_sa $('body').append(''); - if( text && (text.message || text.comment) ){ - this.$('.message').text(text.message); - this.$('.comment').text(text.comment); + if( text ) { + if ( text.message || text.comment ) { + this.$('.message').text(text.message); + this.$('.comment').text(text.comment); + } else { + this.$('.message').text(_t('Error')); + this.$('.comment').html(text); + } } this.pos.barcode_reader.save_callbacks();