[tryton-debian-vcs] tryton-modules-stock branch upstream updated. upstream/4.0.2-1-g1924288
Mathias Behrle
tryton-debian-vcs at alioth.debian.org
Sun Sep 4 16:59:53 UTC 2016
The following commit has been merged in the upstream branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-modules-stock.git;a=commitdiff;h=upstream/4.0.2-1-g1924288
commit 19242882dcae0c974721b8be6608623aa911329e
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Sat Sep 3 20:39:57 2016 +0200
Adding upstream version 4.0.3.
Signed-off-by: Mathias Behrle <mathiasb at m9s.biz>
diff --git a/CHANGELOG b/CHANGELOG
index cfd3b92..8bc82f4 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 4.0.3 - 2016-09-03
+* Bug fixes (see mercurial logs for details)
+
Version 4.0.2 - 2016-07-04
* Bug fixes (see mercurial logs for details)
diff --git a/PKG-INFO b/PKG-INFO
index 56abd43..6e527d3 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: trytond_stock
-Version: 4.0.2
+Version: 4.0.3
Summary: Tryton module for stock and inventory
Home-page: http://www.tryton.org/
Author: Tryton
diff --git a/inventory.py b/inventory.py
index 222045f..a10b716 100644
--- a/inventory.py
+++ b/inventory.py
@@ -203,6 +203,9 @@ class Inventory(Workflow, ModelSQL, ModelView):
grouping = cls.grouping()
to_create = []
for inventory in inventories:
+ # Once done computation is wrong because include created moves
+ if inventory.state == 'done':
+ continue
# Compute product quantities
if fill:
product_ids = None
diff --git a/shipment.py b/shipment.py
index 6ef8259..0d7f14b 100644
--- a/shipment.py
+++ b/shipment.py
@@ -1227,7 +1227,9 @@ class ShipmentOut(Workflow, ModelSQL, ModelView):
round=False)
if write:
Move.write([move], {
- 'quantity': max(0.0, move.quantity - exc_qty),
+ 'quantity': max(
+ 0.0,
+ move.uom.round(move.quantity - exc_qty)),
})
outgoing_qty[move.product.id] -= removed_qty
diff --git a/tryton.cfg b/tryton.cfg
index 70c37dc..4223d52 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
[tryton]
-version=4.0.2
+version=4.0.3
depends:
company
currency
diff --git a/trytond_stock.egg-info/PKG-INFO b/trytond_stock.egg-info/PKG-INFO
index 4027549..db7a4dc 100644
--- a/trytond_stock.egg-info/PKG-INFO
+++ b/trytond_stock.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: trytond-stock
-Version: 4.0.2
+Version: 4.0.3
Summary: Tryton module for stock and inventory
Home-page: http://www.tryton.org/
Author: Tryton
--
tryton-modules-stock
More information about the tryton-debian-vcs
mailing list