From 3a8291d8ed9373603bfeb00bb342b74b75e8c8c0 Mon Sep 17 00:00:00 2001 From: Fabien Meghazi Date: Thu, 30 Jan 2014 16:12:35 +0100 Subject: [PATCH] [IMP] Use cors in pos devices.js bzr revid: fme@openerp.com-20140130151235-0kewmjr5g2w6aiij --- addons/point_of_sale/static/src/js/devices.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/point_of_sale/static/src/js/devices.js b/addons/point_of_sale/static/src/js/devices.js index bb13503d903..f52c0e7eaf4 100644 --- a/addons/point_of_sale/static/src/js/devices.js +++ b/addons/point_of_sale/static/src/js/devices.js @@ -142,7 +142,7 @@ function openerp_pos_devices(instance,module){ //module is instance.point_of_sal // connects to the specified url connect: function(url){ var self = this; - this.connection = new instance.web.Session(undefined,url); + this.connection = new instance.web.Session(undefined,url, { use_cors: true}); this.host = url; this.set_connection_status('connecting',{});