[IMP] point_of_sale: add an error sound to the error popups
authorFrederic van der Essen <fva@openerp.com / fvdessen+o@gmail.com>
Wed, 16 Jul 2014 15:11:18 +0000 (17:11 +0200)
committerFrederic van der Essen <fva@openerp.com / fvdessen+o@gmail.com>
Wed, 16 Jul 2014 15:11:18 +0000 (17:11 +0200)
addons/point_of_sale/static/src/js/screens.js
addons/point_of_sale/static/src/sounds/error.wav [new file with mode: 0644]

index 2f2f5e5..48fa00e 100644 (file)
@@ -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);
+
         },
     });
 
diff --git a/addons/point_of_sale/static/src/sounds/error.wav b/addons/point_of_sale/static/src/sounds/error.wav
new file mode 100644 (file)
index 0000000..472f391
Binary files /dev/null and b/addons/point_of_sale/static/src/sounds/error.wav differ