[IMP] point_of_sale: reduced the weighting probe interval, and put a non zero default value for easier testing
bzr revid: fva@openerp.com-20130712123455-whp86jp9qbmo6p0o
This commit is contained in:
@@ -104,7 +104,7 @@ class PointOfSaleController(http.Controller):
|
||||
@http.route('/pos/weighting_read_kg', type='json', auth='admin')
|
||||
def weighting_read_kg(self):
|
||||
print "weighting_read_kg"
|
||||
return 0.0
|
||||
return 3.14
|
||||
|
||||
@http.route('/pos/weighting_end', type='json', auth='admin')
|
||||
def weighting_end(self):
|
||||
@@ -159,7 +159,7 @@ class PointOfSaleController(http.Controller):
|
||||
print 'print_receipt' + str(receipt)
|
||||
return
|
||||
|
||||
@http.route('/pos/print_receipt', type='json', auth='admin')
|
||||
@http.route('/pos/print_pdf_invoice', type='json', auth='admin')
|
||||
def print_pdf_invoice(self, pdfinvoice):
|
||||
print 'print_pdf_invoice' + str(pdfinvoice)
|
||||
return
|
||||
|
||||
@@ -460,7 +460,7 @@ function openerp_pos_screens(instance, module){ //module is instance.point_of_sa
|
||||
clearInterval(this.intervalID);
|
||||
self.pos_widget.screen_selector.set_current_screen(self.next_screen);
|
||||
}
|
||||
},500);
|
||||
},100);
|
||||
|
||||
this.add_action_button({
|
||||
label: _t('Back'),
|
||||
@@ -515,7 +515,7 @@ function openerp_pos_screens(instance, module){ //module is instance.point_of_sa
|
||||
self.weight = weight;
|
||||
self.renderElement();
|
||||
}
|
||||
},200);
|
||||
},100);
|
||||
},
|
||||
renderElement: function(){
|
||||
var self = this;
|
||||
|
||||
Reference in New Issue
Block a user