[tryton-debian-vcs] tryton-modules-stock-lot branch upstream updated. upstream/4.0.1-1-g869de88
Mathias Behrle
tryton-debian-vcs at alioth.debian.org
Sun Sep 4 17:00:07 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-lot.git;a=commitdiff;h=upstream/4.0.1-1-g869de88
commit 869de886fe03e752a49dc1008cfd24593d8d936c
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Sat Sep 3 21:15:44 2016 +0200
Adding upstream version 4.0.2.
Signed-off-by: Mathias Behrle <mathiasb at m9s.biz>
diff --git a/CHANGELOG b/CHANGELOG
index 09b2d11..ff2fc6d 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 4.0.2 - 2016-09-03
+* Bug fixes (see mercurial logs for details)
+
Version 4.0.1 - 2016-05-11
* Bug fixes (see mercurial logs for details)
diff --git a/PKG-INFO b/PKG-INFO
index c541bf5..0857904 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: trytond_stock_lot
-Version: 4.0.1
+Version: 4.0.2
Summary: Tryton module for lot of products
Home-page: http://www.tryton.org/
Author: Tryton
diff --git a/stock.py b/stock.py
index d1aed4b..af13de7 100644
--- a/stock.py
+++ b/stock.py
@@ -120,16 +120,17 @@ class ShipmentOut:
round=False)
if quantity < out_quantity:
outgoing_moves.extend(Move.copy([out_move], default={
- 'quantity': out_quantity - quantity,
+ 'quantity': out_move.uom.round(
+ out_quantity - quantity),
}))
Move.write([out_move], {
- 'quantity': quantity,
+ 'quantity': out_move.uom.round(quantity),
})
Move.write([out_move], {
'lot': move.lot.id,
})
quantity -= out_quantity
- assert quantity <= 0
+ assert move.uom.round(quantity) <= 0
class ShipmentOutReturn:
diff --git a/tryton.cfg b/tryton.cfg
index f7449d1..3ad86d6 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
[tryton]
-version=4.0.1
+version=4.0.2
depends:
ir
product
diff --git a/trytond_stock_lot.egg-info/PKG-INFO b/trytond_stock_lot.egg-info/PKG-INFO
index 3dc6793..4cae8b0 100644
--- a/trytond_stock_lot.egg-info/PKG-INFO
+++ b/trytond_stock_lot.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: trytond-stock-lot
-Version: 4.0.1
+Version: 4.0.2
Summary: Tryton module for lot of products
Home-page: http://www.tryton.org/
Author: Tryton
--
tryton-modules-stock-lot
More information about the tryton-debian-vcs
mailing list