[tryton-debian-vcs] tryton-modules-stock-supply-production branch upstream updated. upstream/4.4.1-1-gbf1abac
Mathias Behrle
tryton-debian-vcs at alioth.debian.org
Thu Aug 17 12:44:20 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.1-1-gbf1abac
commit bf1abacdfd12561228beff61fa08c996d2e801cb
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Thu Aug 17 12:09:13 2017 +0200
Adding upstream version 4.4.2.
Signed-off-by: Mathias Behrle <mathiasb at m9s.biz>
diff --git a/CHANGELOG b/CHANGELOG
index da2b538..2803652 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 4.4.2 - 2017-08-08
+* Bug fixes (see mercurial logs for details)
+
Version 4.4.1 - 2017-07-01
* Bug fixes (see mercurial logs for details)
diff --git a/PKG-INFO b/PKG-INFO
index cd6dace..ce1a13e 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: trytond_stock_supply_production
-Version: 4.4.1
+Version: 4.4.2
Summary: Tryton module for stock supply of production
Home-page: http://www.tryton.org/
Author: Tryton
diff --git a/production.py b/production.py
index 9dab619..e897082 100644
--- a/production.py
+++ b/production.py
@@ -166,15 +166,15 @@ class Production:
shortages = {}
min_quantities = {}
- max_quantities = {}
+ target_quantities = {}
for product_id in product_ids:
order_point = order_points.get((location_id, product_id))
if order_point:
min_quantities[product_id] = order_point.min_quantity
- max_quantities[product_id] = order_point.max_quantity
+ target_quantities[product_id] = order_point.target_quantity
else:
min_quantities[product_id] = 0.0
- max_quantities[product_id] = 0.0
+ target_quantities[product_id] = 0.0
shortages[product_id] = []
products_period = products_period[:]
@@ -185,9 +185,9 @@ class Production:
for product_id in product_ids:
current_qty = current_qties[product_id]
min_quantity = min_quantities[product_id]
- if current_qty < min_quantity:
- max_quantity = max_quantities[product_id]
- quantity = max_quantity - current_qty
+ if min_quantity is not None and current_qty < min_quantity:
+ target_quantity = target_quantities[product_id]
+ quantity = target_quantity - current_qty
shortages[product_id].append((current_date, quantity))
current_qties[product_id] += quantity
diff --git a/tryton.cfg b/tryton.cfg
index c5949c3..3fc51b0 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
[tryton]
-version=4.4.1
+version=4.4.2
depends:
ir
product
diff --git a/trytond_stock_supply_production.egg-info/PKG-INFO b/trytond_stock_supply_production.egg-info/PKG-INFO
index fb11661..00a0c58 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.1
+Version: 4.4.2
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