[tryton-debian-vcs] tryton-modules-stock-supply-production branch upstream-3.2 updated. upstream/3.2.3-1-gd69ac70
Mathias Behrle
tryton-debian-vcs at alioth.debian.org
Tue Jul 12 13:06:46 UTC 2016
The following commit has been merged in the upstream-3.2 branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-modules-stock-supply-production.git;a=commitdiff;h=upstream/3.2.3-1-gd69ac70
commit d69ac70454fb0e08530ae84af919cc1612d4c4c8
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Mon Jul 11 20:11:22 2016 +0200
Adding upstream version 3.2.4.
Signed-off-by: Mathias Behrle <mathiasb at m9s.biz>
diff --git a/CHANGELOG b/CHANGELOG
index a1eb108..0a7cb96 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 3.2.4 - 2016-07-04
+* Bug fixes (see mercurial logs for details)
+
Version 3.2.3 - 2015-09-10
* Bug fixes (see mercurial logs for details)
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 77c36b3..d875b71 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: trytond_stock_supply_production
-Version: 3.2.3
+Version: 3.2.4
Summary: Tryton module for stock supply of production
Home-page: http://www.tryton.org/
Author: Tryton
diff --git a/production.py b/production.py
index 959eda0..93c2781 100644
--- a/production.py
+++ b/production.py
@@ -2,6 +2,7 @@
#this repository contains the full copyright notices and license terms.
import datetime
from decimal import Decimal
+from collections import defaultdict
from trytond.model import ModelView, fields
from trytond.pool import Pool, PoolMeta
@@ -86,8 +87,8 @@ class Production:
for p in products[i:i + cursor.IN_MAX]])
for warehouse in warehouses:
- quantities = dict((x, pbl.pop((warehouse.id, x), 0))
- for x in product_ids)
+ quantities = defaultdict(lambda: 0,
+ ((x, pbl.pop((warehouse.id, x), 0)) for x in product_ids))
shortages = cls.get_shortage(warehouse.id, product_ids, today,
quantities, products_period, product2ops)
diff --git a/tryton.cfg b/tryton.cfg
index 9b81a63..a9aa802 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
[tryton]
-version=3.2.3
+version=3.2.4
depends:
ir
product
diff --git a/trytond_stock_supply_production.egg-info/PKG-INFO b/trytond_stock_supply_production.egg-info/PKG-INFO
index 863f5f2..db80d29 100644
--- a/trytond_stock_supply_production.egg-info/PKG-INFO
+++ b/trytond_stock_supply_production.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: trytond-stock-supply-production
-Version: 3.2.3
+Version: 3.2.4
Summary: Tryton module for stock supply of production
Home-page: http://www.tryton.org/
Author: Tryton
diff --git a/trytond_stock_supply_production.egg-info/requires.txt b/trytond_stock_supply_production.egg-info/requires.txt
index b2b7a19..ef9dbef 100644
--- a/trytond_stock_supply_production.egg-info/requires.txt
+++ b/trytond_stock_supply_production.egg-info/requires.txt
@@ -2,4 +2,4 @@ trytond_product >= 3.2, < 3.3
trytond_production >= 3.2, < 3.3
trytond_stock >= 3.2, < 3.3
trytond_stock_supply >= 3.2, < 3.3
-trytond >= 3.2, < 3.3
\ No newline at end of file
+trytond >= 3.2, < 3.3
--
tryton-modules-stock-supply-production
More information about the tryton-debian-vcs
mailing list