Skip to content
Snippets Groups Projects
Commit 06675241 authored by Frédéric van der Essen's avatar Frédéric van der Essen
Browse files

[FIX] point_of_sale: weighting end signal could fail to emit in debug mode

bzr revid: fva@openerp.com-20130708124912-0t8l8v13ug3hst7m
parent b8fd0fef
Branches
Tags
No related merge requests found
......@@ -118,8 +118,8 @@ function openerp_pos_devices(instance,module){ //module is instance.point_of_sal
},
// the client has finished weighting products
weighting_end: function(){
if(!this.bypass_proxy){
weighting_end: function(force){
if(!this.bypass_proxy || force){
this.weight = 0;
this.weighting = false;
this.message('weighting_end');
......
......@@ -527,6 +527,8 @@ function openerp_pos_screens(instance, module){ //module is instance.point_of_sa
},
order_product: function(){
var weight = this.pos.proxy.weighting_read_kg();
console.log('weighting_end');
this.pos.proxy.weighting_end('true');
this.pos.get('selectedOrder').addProduct(this.get_product(),{ quantity:weight });
},
get_product_name: function(){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment