[FIX] point_of_sale: quantity decimals for new lines

In the pos interface,
when adding a product to the order,
the quantity was set to `1`,
but, when adding the same product again,
the quantity was set to `2.000`.

We use `set_quantity` to not
copy/paste what is already done
in this method to display
correctly the quantity within
the product unit of measure rounding.
This commit is contained in:
Denis Ledoux 2015-11-27 16:37:54 +01:00
parent 52d2b7fbcf
commit 4b003afd0a
1 changed files with 1 additions and 2 deletions

View File

@ -667,8 +667,7 @@ function openerp_pos_models(instance, module){ //module is instance.point_of_sal
this.order = options.order;
this.product = options.product;
this.price = options.product.price;
this.quantity = 1;
this.quantityStr = '1';
this.set_quantity(1);
this.discount = 0;
this.discountStr = '0';
this.type = 'unit';