[tryton-debian-vcs] tryton-modules-stock-supply branch upstream-2.8 updated. upstream/2.8.1-1-g93c62e8

Mathias Behrle tryton-debian-vcs at alioth.debian.org
Wed Mar 26 20:35:30 UTC 2014


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

commit 93c62e8b7f40ccd9c43a9dc5b960d17a9de0b3e4
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Wed Mar 26 21:23:42 2014 +0100

    Adding upstream version 2.8.2.

diff --git a/CHANGELOG b/CHANGELOG
index 85acf08..6374f75 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 2.8.2 - 2014-03-22
+* Bug fixes (see mercurial logs for details)
+
 Version 2.8.1 - 2013-06-09
 * Bug fixes (see mercurial logs for details)
 
diff --git a/COPYRIGHT b/COPYRIGHT
index 9192c97..5134c09 100644
--- a/COPYRIGHT
+++ b/COPYRIGHT
@@ -1,6 +1,6 @@
-Copyright (C) 2008-2013 Cédric Krier.
+Copyright (C) 2008-2014 Cédric Krier.
 Copyright (C) 2008-2013 Bertrand Chenal.
-Copyright (C) 2008-2013 B2CK SPRL.
+Copyright (C) 2008-2014 B2CK SPRL.
 
 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
diff --git a/PKG-INFO b/PKG-INFO
index 576a69d..b385d39 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: trytond_stock_supply
-Version: 2.8.1
+Version: 2.8.2
 Summary: Tryton module for stock supply
 Home-page: http://www.tryton.org/
 Author: Tryton
diff --git a/order_point.py b/order_point.py
index 75ff205..7f36b99 100644
--- a/order_point.py
+++ b/order_point.py
@@ -139,6 +139,7 @@ class OrderPoint(ModelSQL, ModelView):
         query = ['OR']
         for op in internals:
             arg = ['AND',
+                   ('product', '=', op.product.id),
                    ('provisioning_location', '=', op.storage_location.id),
                    ('storage_location', '=', op.provisioning_location.id),
                    ('company', '=', op.company.id),
diff --git a/purchase_request.py b/purchase_request.py
index 8f1371e..8b5097f 100644
--- a/purchase_request.py
+++ b/purchase_request.py
@@ -183,10 +183,10 @@ class PurchaseRequest(ModelSQL, ModelView):
         # compute requests
         new_requests = []
         cursor = Transaction().cursor
-        for dates, products in date2products.iteritems():
+        for dates, sub_products in date2products.iteritems():
             min_date, max_date = dates
-            for i in range(0, len(products), cursor.IN_MAX):
-                product_ids = [p.id for p in products[i:i + cursor.IN_MAX]]
+            for i in range(0, len(sub_products), cursor.IN_MAX):
+                product_ids = [p.id for p in sub_products[i:i + cursor.IN_MAX]]
                 with Transaction().set_context(forecast=True,
                         stock_date_end=min_date or datetime.date.max):
                     pbl = Product.products_by_location(warehouse_ids,
@@ -199,7 +199,7 @@ class PurchaseRequest(ModelSQL, ModelView):
                         min_date, max_date, min_date_qties=min_date_qties,
                         order_points=product2ops)
 
-                    for product in products[i:i + cursor.IN_MAX]:
+                    for product in sub_products[i:i + cursor.IN_MAX]:
                         shortage_date, product_quantity = shortages[product.id]
                         if shortage_date is None or product_quantity is None:
                             continue
diff --git a/tryton.cfg b/tryton.cfg
index 319cde5..e358f58 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
 [tryton]
-version=2.8.1
+version=2.8.2
 depends:
     account
     ir
diff --git a/trytond_stock_supply.egg-info/PKG-INFO b/trytond_stock_supply.egg-info/PKG-INFO
index a4855fb..94c580e 100644
--- a/trytond_stock_supply.egg-info/PKG-INFO
+++ b/trytond_stock_supply.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: trytond-stock-supply
-Version: 2.8.1
+Version: 2.8.2
 Summary: Tryton module for stock supply
 Home-page: http://www.tryton.org/
 Author: Tryton
-- 
tryton-modules-stock-supply



More information about the tryton-debian-vcs mailing list