[FIX]barcode interface: allow to enter float quantity

bzr revid: csn@openerp.com-20140508123756-a8jckv6540bbj0w9
This commit is contained in:
Cedric Snauwaert 2014-05-08 14:37:56 +02:00
parent f56f6011ea
commit 3ec70c314f
1 changed files with 1 additions and 1 deletions

View File

@ -237,7 +237,7 @@ function openerp_picking_widgets(instance){
});
this.$('.js_submit_value').submit(function(event){
var op_id = $(this).parents("[data-id]:first").data('id');
var value = parseInt($("input", this).val());
var value = parseFloat($("input", this).val());
if (value>=0){
self.getParent().set_operation_quantity(value, op_id);
}