[tryton-debian-vcs] tryton-modules-stock branch debian updated. debian/4.0.2-1-2-ga5254c4

Mathias Behrle tryton-debian-vcs at alioth.debian.org
Sun Sep 4 16:59:51 UTC 2016


The following commit has been merged in the debian branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-modules-stock.git;a=commitdiff;h=debian/4.0.2-1-2-ga5254c4

commit a5254c4788e31425e718732701b9926865f3df9d
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Sat Sep 3 20:39:58 2016 +0200

    Releasing debian version 4.0.3-1.
    
    Signed-off-by: Mathias Behrle <mathiasb at m9s.biz>

diff --git a/debian/changelog b/debian/changelog
index 11f4df7..56625db 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+tryton-modules-stock (4.0.3-1) unstable; urgency=medium
+
+  * Merging upstream version 4.0.3.
+
+ -- Mathias Behrle <mathiasb at m9s.biz>  Sat, 03 Sep 2016 20:39:58 +0200
+
 tryton-modules-stock (4.0.2-1) unstable; urgency=medium
 
   * Updating to Standards-Version: 3.9.8, no changes needed.
commit d1a181b7d5bb685413ecd56b2a5487da0df418fe
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Sat Sep 3 20:39:58 2016 +0200

    Merging upstream version 4.0.3.

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