summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederic van der Essen <fva@openerp.com / fvdessen+o@gmail.com>2014-07-16 17:11:18 +0200
committerFrederic van der Essen <fva@openerp.com / fvdessen+o@gmail.com>2014-07-16 17:11:18 +0200
commit06e983d4df53295c970f4c97b824f8a8aee53a2b (patch)
tree2c7446999bf5663a11f7b83b2b99f9e1cb78f562
parent49bc956395d5fdd2f3e3be8bc0035ec38c92f7c6 (diff)
[IMP] point_of_sale: add an error sound to the error popups
-rw-r--r--addons/point_of_sale/static/src/js/screens.js3
-rw-r--r--addons/point_of_sale/static/src/sounds/error.wavbin0 -> 25190 bytes
2 files changed, 3 insertions, 0 deletions
diff --git a/addons/point_of_sale/static/src/js/screens.js b/addons/point_of_sale/static/src/js/screens.js
index 2f2f5e57312..48fa00e1d70 100644
--- a/addons/point_of_sale/static/src/js/screens.js
+++ b/addons/point_of_sale/static/src/js/screens.js
@@ -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
index 00000000000..472f3910719
--- /dev/null
+++ b/addons/point_of_sale/static/src/sounds/error.wav
Binary files differ