[tryton-debian-vcs] tryton-modules-stock-product-location branch upstream updated. upstream/3.0.0-1-g3d8da2f
Mathias Behrle
tryton-debian-vcs at alioth.debian.org
Sun Jan 19 19:05:34 UTC 2014
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-product-location.git;a=commitdiff;h=upstream/3.0.0-1-g3d8da2f
commit 3d8da2fa25bb5fdf97526560d396232810ede826
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Sun Jan 19 19:38:21 2014 +0100
Adding 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