[tryton-debian-vcs] tryton-modules-stock-supply-production branch upstream updated. upstream/4.4.0-1-ga9ee846

Mathias Behrle tryton-debian-vcs at alioth.debian.org
Sun Jul 2 17:57:45 UTC 2017


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-supply-production.git;a=commitdiff;h=upstream/4.4.0-1-ga9ee846

commit a9ee846f3b5923cc3880c2ce8a1ce79655e03b33
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Sun Jul 2 17:16:09 2017 +0200

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

diff --git a/CHANGELOG b/CHANGELOG
index 7b38998..da2b538 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 4.4.1 - 2017-07-01
+* Bug fixes (see mercurial logs for details)
+
 Version 4.4.0 - 2017-05-01
 * Bug fixes (see mercurial logs for details)
 * Merge supply into one wizard
diff --git a/PKG-INFO b/PKG-INFO
index 88c3570..cd6dace 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: trytond_stock_supply_production
-Version: 4.4.0
+Version: 4.4.1
 Summary: Tryton module for stock supply of production
 Home-page: http://www.tryton.org/
 Author: Tryton
diff --git a/product.py b/product.py
index ef10cec..ee82a9a 100644
--- a/product.py
+++ b/product.py
@@ -1,5 +1,6 @@
 # This file is part of Tryton.  The COPYRIGHT file at the top level of
 # this repository contains the full copyright notices and license terms.
+from datetime import timedelta
 
 from trytond.pool import Pool, PoolMeta
 
@@ -14,4 +15,4 @@ class Product:
         'Return the supply period for the product'
         pool = Pool()
         Configuration = pool.get('production.configuration')
-        return Configuration(1).supply_period or 0
+        return Configuration(1).supply_period or timedelta(0)
diff --git a/production.py b/production.py
index c3e9def..9dab619 100644
--- a/production.py
+++ b/production.py
@@ -193,7 +193,7 @@ class Production:
 
             # Remove product with smaller period
             while (products_period
-                    and products_period[0][0] <= (current_date - date).days):
+                    and products_period[0][0] <= (current_date - date)):
                 _, product = products_period.pop(0)
                 product_ids.remove(product.id)
             current_date += datetime.timedelta(1)
diff --git a/setup.cfg b/setup.cfg
index 861a9f5..8bfd5a1 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,5 +1,4 @@
 [egg_info]
 tag_build = 
 tag_date = 0
-tag_svn_revision = 0
 
diff --git a/tryton.cfg b/tryton.cfg
index f3bf616..c5949c3 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
 [tryton]
-version=4.4.0
+version=4.4.1
 depends:
     ir
     product
diff --git a/trytond_stock_supply_production.egg-info/PKG-INFO b/trytond_stock_supply_production.egg-info/PKG-INFO
index 51ad1b3..fb11661 100644
--- a/trytond_stock_supply_production.egg-info/PKG-INFO
+++ b/trytond_stock_supply_production.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: trytond-stock-supply-production
-Version: 4.4.0
+Version: 4.4.1
 Summary: Tryton module for stock supply of production
 Home-page: http://www.tryton.org/
 Author: Tryton
-- 
tryton-modules-stock-supply-production



More information about the tryton-debian-vcs mailing list