[tryton-debian-vcs] tryton-modules-stock-product-location branch debian updated. debian/3.0.0-2-2-gdafdded
Mathias Behrle
tryton-debian-vcs at alioth.debian.org
Sun Jan 19 19:05:33 UTC 2014
The following commit has been merged in the debian branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-modules-stock-product-location.git;a=commitdiff;h=debian/3.0.0-2-2-gdafdded
commit dafdded0e3def42b0b65126130ae53a56f4b8c84
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Sun Jan 19 20:05:07 2014 +0100
Releasing debian version 3.0.1-1.
diff --git a/debian/changelog b/debian/changelog
index 630dd70..d0652a0 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+tryton-modules-stock-product-location (3.0.1-1) unstable; urgency=medium
+
+ * Merging upstream version 3.0.1.
+
+ -- Mathias Behrle <mathiasb at m9s.biz> Sun, 19 Jan 2014 19:42:10 +0100
+
tryton-modules-stock-product-location (3.0.0-2) unstable; urgency=low
* Pointing VCS fields to new location on alioth.debian.org.
commit 89d6e163f60a81ca3109df9fc8c7ea9d6f407e4f
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Sun Jan 19 19:38:22 2014 +0100
Merging upstream version 3.0.1.
diff --git a/CHANGELOG b/CHANGELOG
index a88b689..5994775 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 3.0.1 - 2014-01-18
+* Bug fixes (see mercurial logs for details)
+
Version 3.0.0 - 2013-10-21
* Bug fixes (see mercurial logs for details)
diff --git a/PKG-INFO b/PKG-INFO
index 76a3273..e1609f1 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: trytond_stock_product_location
-Version: 3.0.0
+Version: 3.0.1
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 1634a50..cd442e8 100644
--- a/location.py
+++ b/location.py
@@ -57,11 +57,12 @@ class ShipmentIn:
@classmethod
def _get_inventory_moves(cls, incoming_move):
move = super(ShipmentIn, cls)._get_inventory_moves(incoming_move)
- for product_location in incoming_move.product.locations:
- if product_location.warehouse.id != \
- incoming_move.shipment.warehouse.id:
- continue
- move.to_location = product_location.location
+ if move:
+ for product_location in incoming_move.product.locations:
+ if product_location.warehouse.id != \
+ incoming_move.shipment.warehouse.id:
+ continue
+ move.to_location = product_location.location
return move
@@ -72,8 +73,9 @@ class ShipmentOutReturn:
def _get_inventory_moves(cls, incoming_move):
move = super(ShipmentOutReturn, cls)._get_inventory_moves(
incoming_move)
- for product_location in incoming_move.product.locations:
- if (product_location.warehouse
- == incoming_move.shipment.warehouse):
- move.to_location = product_location.location
+ if move:
+ for product_location in incoming_move.product.locations:
+ if (product_location.warehouse
+ == incoming_move.shipment.warehouse):
+ move.to_location = product_location.location
return move
diff --git a/tryton.cfg b/tryton.cfg
index 2fb72e7..a6b634d 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
[tryton]
-version=3.0.0
+version=3.0.1
depends:
ir
product
diff --git a/trytond_stock_product_location.egg-info/PKG-INFO b/trytond_stock_product_location.egg-info/PKG-INFO
index 313abc2..865cf99 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: 3.0.0
+Version: 3.0.1
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