[tryton-debian-vcs] tryton-modules-stock-lot branch upstream-3.8 updated. upstream/3.8.0-1-g0cd1d0a
Mathias Behrle
tryton-debian-vcs at alioth.debian.org
Mon Dec 19 18:51:30 UTC 2016
The following commit has been merged in the upstream-3.8 branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-modules-stock-lot.git;a=commitdiff;h=upstream/3.8.0-1-g0cd1d0a
commit 0cd1d0addd1b05b8d6521fcfca994ec0d9436ef8
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Mon Dec 19 12:07:20 2016 +0100
Adding upstream version 3.8.1.
Signed-off-by: Mathias Behrle <mathiasb at m9s.biz>
diff --git a/CHANGELOG b/CHANGELOG
index 0ce2542..7d3d47e 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 3.8.1 - 2016-12-17
+* Bug fixes (see mercurial logs for details)
+
Version 3.8.0 - 2015-11-02
* Bug fixes (see mercurial logs for details)
* Adapt inventory to use grouping
diff --git a/COPYRIGHT b/COPYRIGHT
index 776aee6..442fb2d 100644
--- a/COPYRIGHT
+++ b/COPYRIGHT
@@ -1,5 +1,5 @@
-Copyright (C) 2012-2015 Cédric Krier.
-Copyright (C) 2012-2015 B2CK SPRL.
+Copyright (C) 2012-2016 Cédric Krier.
+Copyright (C) 2012-2016 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 7c70679..5489fdf 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: trytond_stock_lot
-Version: 3.8.0
+Version: 3.8.1
Summary: Tryton module for lot of products
Home-page: http://www.tryton.org/
Author: Tryton
diff --git a/stock.py b/stock.py
index 1a0f85f..87a2ac9 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
@@ -101,10 +103,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 83994fc..d549a2d 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
[tryton]
-version=3.8.0
+version=3.8.1
depends:
ir
product
diff --git a/trytond_stock_lot.egg-info/PKG-INFO b/trytond_stock_lot.egg-info/PKG-INFO
index 8d49d22..2d89cc5 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: 3.8.0
+Version: 3.8.1
Summary: Tryton module for lot of products
Home-page: http://www.tryton.org/
Author: Tryton
diff --git a/trytond_stock_lot.egg-info/requires.txt b/trytond_stock_lot.egg-info/requires.txt
index 193d062..e06961a 100644
--- a/trytond_stock_lot.egg-info/requires.txt
+++ b/trytond_stock_lot.egg-info/requires.txt
@@ -1,3 +1,3 @@
trytond_product >= 3.8, < 3.9
trytond_stock >= 3.8, < 3.9
-trytond >= 3.8, < 3.9
\ No newline at end of file
+trytond >= 3.8, < 3.9
--
tryton-modules-stock-lot
More information about the tryton-debian-vcs
mailing list