[tryton-debian-vcs] tryton-modules-stock branch upstream-3.2 updated. upstream/3.2.6-1-g1f5a75b

Mathias Behrle tryton-debian-vcs at alioth.debian.org
Wed Dec 23 16:54:50 UTC 2015


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

commit 1f5a75b9f54c8e2ae7e77d32bb787443f9b04894
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Wed Dec 23 14:40:23 2015 +0100

    Adding upstream version 3.2.7.
    
    Signed-off-by: Mathias Behrle <mathiasb at m9s.biz>

diff --git a/CHANGELOG b/CHANGELOG
index d886102..7027f82 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 3.2.7 - 2015-12-22
+* Bug fixes (see mercurial logs for details)
+
 Version 3.2.6 - 2015-09-12
 * Bug fixes (see mercurial logs for details)
 
diff --git a/PKG-INFO b/PKG-INFO
index 48e06e2..c6a2649 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: trytond_stock
-Version: 3.2.6
+Version: 3.2.7
 Summary: Tryton module for stock and inventory
 Home-page: http://www.tryton.org/
 Author: Tryton
diff --git a/move.py b/move.py
index 1b23333..f98fe77 100644
--- a/move.py
+++ b/move.py
@@ -547,7 +547,7 @@ class Move(Workflow, ModelSQL, ModelView):
             product_qty = product.quantity
         else:
             product_qty = product.template.quantity
-        product_qty = Decimal(str(product_qty))
+        product_qty = Decimal(str(max(product_qty, 0)))
         # convert wrt currency
         with Transaction().set_context(date=self.effective_date):
             unit_price = Currency.compute(self.currency, self.unit_price,
diff --git a/tryton.cfg b/tryton.cfg
index f0b4042..cbb009d 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
 [tryton]
-version=3.2.6
+version=3.2.7
 depends:
     company
     currency
diff --git a/trytond_stock.egg-info/PKG-INFO b/trytond_stock.egg-info/PKG-INFO
index e887d93..0663bbb 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: 3.2.6
+Version: 3.2.7
 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