[FIX] point_of_sale & hw_proxy: connect the pos to the new proxy, and fix scale emulation
bzr revid: fva@openerp.com-20131219142911-i9mkwqt1e0wz28i7
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user