diff --git a/inventory.py b/inventory.py index bab0ed29b8..4f7581bc42 100644 --- a/inventory.py +++ b/inventory.py @@ -590,7 +590,7 @@ class Count(Wizard): values['product'] = line.product.id values['uom'] = line.uom.id if line.uom.rounding == 1: - values['quantity'] = 1 + values['quantity'] = 1. return values def get_line_domain(self, inventory): diff --git a/tests/scenario_stock_inventory_count.rst b/tests/scenario_stock_inventory_count.rst index feb5dce6c2..b1f752baed 100644 --- a/tests/scenario_stock_inventory_count.rst +++ b/tests/scenario_stock_inventory_count.rst @@ -83,9 +83,9 @@ Count inventory:: ... inventory.id, product.id)).save() >>> count.execute('quantity') >>> count.form.quantity - 1 + 1.0 >>> count.form.total_quantity - 1 + 1.0 >>> count.execute('add') >>> count.form.search = product