[tryton-debian-vcs] tryton-modules-stock-lot branch debian-stretch-4.0 updated. debian/4.0.2-1-3-gd3914da
Mathias Behrle
tryton-debian-vcs at alioth.debian.org
Mon Dec 19 18:51:29 UTC 2016
The following commit has been merged in the debian-stretch-4.0 branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-modules-stock-lot.git;a=commitdiff;h=debian/4.0.2-1-3-gd3914da
commit d3914da7709062618fc0eac517e86973afce50dc
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Mon Dec 19 12:08:28 2016 +0100
Releasing debian version 4.0.3-1.
Signed-off-by: Mathias Behrle <mathiasb at m9s.biz>
diff --git a/debian/changelog b/debian/changelog
index 3d25ae7..4a09b34 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+tryton-modules-stock-lot (4.0.3-1) unstable; urgency=medium
+
+ * Setting the branch in the watch file to the fixed version 4.0.
+ * Merging upstream version 4.0.3.
+
+ -- Mathias Behrle <mathiasb at m9s.biz> Mon, 19 Dec 2016 12:08:28 +0100
+
tryton-modules-stock-lot (4.0.2-1) unstable; urgency=medium
* Updating to Standards-Version: 3.9.8, no changes needed.
commit 79449ea3bcd04fc97a1d44e88b01002e1cd82b1d
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Mon Dec 19 12:08:27 2016 +0100
Merging upstream version 4.0.3.
diff --git a/CHANGELOG b/CHANGELOG
index ff2fc6d..25044fc 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 4.0.3 - 2016-12-17
+* Bug fixes (see mercurial logs for details)
+
Version 4.0.2 - 2016-09-03
* Bug fixes (see mercurial logs for details)
diff --git a/PKG-INFO b/PKG-INFO
index 0857904..c92b2a0 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: trytond_stock_lot
-Version: 4.0.2
+Version: 4.0.3
Summary: Tryton module for lot of products
Home-page: http://www.tryton.org/
Author: Tryton
diff --git a/stock.py b/stock.py
index af13de7..a17758a 100644
--- a/stock.py
+++ b/stock.py
@@ -1,5 +1,7 @@
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
+from collections import defaultdict
+
from trytond.model import ModelView, ModelSQL, fields
from trytond.pyson import Eval
from trytond.pool import Pool, PoolMeta
@@ -103,10 +105,9 @@ class ShipmentOut:
super(ShipmentOut, cls)._sync_inventory_to_outgoing(
shipments, create=create, write=write)
for shipment in shipments:
- outgoing_by_product = {}
+ outgoing_by_product = defaultdict(list)
for move in shipment.outgoing_moves:
- outgoing_by_product.setdefault(move.product.id,
- []).append(move)
+ outgoing_by_product[move.product.id].append(move)
for move in shipment.inventory_moves:
if not move.lot:
continue
diff --git a/tryton.cfg b/tryton.cfg
index 3ad86d6..36ca13b 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
[tryton]
-version=4.0.2
+version=4.0.3
depends:
ir
product
diff --git a/trytond_stock_lot.egg-info/PKG-INFO b/trytond_stock_lot.egg-info/PKG-INFO
index 4cae8b0..5d5d0b7 100644
--- a/trytond_stock_lot.egg-info/PKG-INFO
+++ b/trytond_stock_lot.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: trytond-stock-lot
-Version: 4.0.2
+Version: 4.0.3
Summary: Tryton module for lot of products
Home-page: http://www.tryton.org/
Author: Tryton
--
tryton-modules-stock-lot
More information about the tryton-debian-vcs
mailing list