[tryton-debian-vcs] tryton-modules-stock-product-location branch debian-wheezy-2.6 updated. debian/2.6.1-1-2-g9d40af2

Mathias Behrle tryton-debian-vcs at alioth.debian.org
Mon Jan 20 17:34:29 UTC 2014


The following commit has been merged in the debian-wheezy-2.6 branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-modules-stock-product-location.git;a=commitdiff;h=debian/2.6.1-1-2-g9d40af2

commit 9d40af2243298c195f6987f24d81ee74f332e68b
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Mon Jan 20 18:33:26 2014 +0100

    Releasing debian version 2.6.2-1.

diff --git a/debian/changelog b/debian/changelog
index 81da201..9dd0735 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+tryton-modules-stock-product-location (2.6.2-1) unstable; urgency=medium
+
+  * Merging upstream version 2.6.2.
+
+ -- Mathias Behrle <mathiasb at m9s.biz>  Mon, 20 Jan 2014 18:25:37 +0100
+
 tryton-modules-stock-product-location (2.6.1-1) unstable; urgency=low
 
   * Removing Daniel from Uploaders. Thanks for your work! (Closes:
commit c51cecb3d79e114c18b920291d7df742462043e7
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Mon Jan 20 18:24:16 2014 +0100

    Merging upstream version 2.6.2.

diff --git a/CHANGELOG b/CHANGELOG
index 6ac306e..11d574e 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 2.6.2 - 2014-01-18
+* Bug fixes (see mercurial logs for details)
+
 Version 2.6.1 - 2013-10-01
 * Bug fixes (see mercurial logs for details)
 
diff --git a/PKG-INFO b/PKG-INFO
index d1b5dee..345479e 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: trytond_stock_product_location
-Version: 2.6.1
+Version: 2.6.2
 Summary: Tryton module to add default location on product
 Home-page: http://www.tryton.org/
 Author: Tryton
diff --git a/location.py b/location.py
index b6ed460..2ec7f2f 100644
--- a/location.py
+++ b/location.py
@@ -52,9 +52,10 @@ class ShipmentIn:
     @classmethod
     def _get_inventory_moves(cls, incoming_move):
         res = super(ShipmentIn, cls)._get_inventory_moves(incoming_move)
-        for product_location in incoming_move.product.locations:
-            if product_location.warehouse.id != \
-                    incoming_move.shipment_in.warehouse.id:
-                continue
-            res['to_location'] = product_location.location.id
+        if res:
+            for product_location in incoming_move.product.locations:
+                if product_location.warehouse.id != \
+                        incoming_move.shipment_in.warehouse.id:
+                    continue
+                res['to_location'] = product_location.location.id
         return res
diff --git a/tryton.cfg b/tryton.cfg
index e43c2ce..02a86ef 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
 [tryton]
-version=2.6.1
+version=2.6.2
 depends:
     ir
     product
diff --git a/trytond_stock_product_location.egg-info/PKG-INFO b/trytond_stock_product_location.egg-info/PKG-INFO
index 7e8ae23..2734db8 100644
--- a/trytond_stock_product_location.egg-info/PKG-INFO
+++ b/trytond_stock_product_location.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: trytond-stock-product-location
-Version: 2.6.1
+Version: 2.6.2
 Summary: Tryton module to add default location on product
 Home-page: http://www.tryton.org/
 Author: Tryton
-- 
tryton-modules-stock-product-location



More information about the tryton-debian-vcs mailing list