diff --git a/addons/hw_proxy/controllers/main.py b/addons/hw_proxy/controllers/main.py index 71075456744..4df01372846 100644 --- a/addons/hw_proxy/controllers/main.py +++ b/addons/hw_proxy/controllers/main.py @@ -14,6 +14,9 @@ _logger = logging.getLogger(__name__) class ProxyController(http.Controller): def __init__(self): + self.scale = 'closed' + self.scale_weight = 0.0 + pass @http.route('/hw_proxy/test_connection', type='json', auth='admin') def test_connection(self): diff --git a/addons/point_of_sale/static/src/js/devices.js b/addons/point_of_sale/static/src/js/devices.js index abf4a1787e0..a1d8e19aacc 100644 --- a/addons/point_of_sale/static/src/js/devices.js +++ b/addons/point_of_sale/static/src/js/devices.js @@ -118,7 +118,7 @@ function openerp_pos_devices(instance,module){ //module is instance.point_of_sal callbacks[i](params); } if(this.connected){ - return this.connection.rpc('/pos/' + name, params || {}); + return this.connection.rpc('/hw_proxy/' + name, params || {}); }else{ return (new $.Deferred()).reject(); }