[IMP] point_of_sale: add an error sound to the error popups

This commit is contained in:
Frederic van der Essen
2014-07-16 17:11:18 +02:00
parent 49bc956395
commit 06e983d4df
2 changed files with 3 additions and 0 deletions
@@ -348,6 +348,8 @@ function openerp_pos_screens(instance, module){ //module is instance.point_of_sa
var self = this;
this._super();
$('body').append('<audio src="/point_of_sale/static/src/sounds/error.wav" autoplay="true"></audio>');
if( text && (text.message || text.comment) ){
this.$('.message').text(text.message);
this.$('.comment').text(text.comment);
@@ -375,6 +377,7 @@ function openerp_pos_screens(instance, module){ //module is instance.point_of_sa
show: function(barcode){
this._super();
this.$('.barcode').text(barcode);
},
});
Binary file not shown.