[tryton-debian-vcs] tryton-modules-stock-supply branch debian-stretch-3.6 updated. debian/3.6.0-1-8-g8c9b3eb

Mathias Behrle tryton-debian-vcs at alioth.debian.org
Tue Jul 12 13:06:33 UTC 2016


The following commit has been merged in the debian-stretch-3.6 branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-modules-stock-supply.git;a=commitdiff;h=debian/3.6.0-1-8-g8c9b3eb

commit 8c9b3eb3cae63ae9f48acac90c183b906bd4aaa1
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Mon Jul 11 20:22:06 2016 +0200

    Releasing debian version 3.6.1-1.
    
    Signed-off-by: Mathias Behrle <mathiasb at m9s.biz>

diff --git a/debian/changelog b/debian/changelog
index 48c0dc7..b96a2c9 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,15 @@
+tryton-modules-stock-supply (3.6.1-1) unstable; urgency=medium
+
+  * Updating year of debian copyright.
+  * Adapting section naming in gbp.conf to current git-buildpackage.
+  * Improving description why we can not run the module test suites.
+  * Setting the branch in the watch file to the fixed version 3.6.
+  * Updating signing-key.asc with the actual upstream maintainer keys.
+  * Merging upstream version 3.6.1.
+  * Updating copyright file.
+
+ -- Mathias Behrle <mathiasb at m9s.biz>  Mon, 11 Jul 2016 20:22:06 +0200
+
 tryton-modules-stock-supply (3.6.0-1) unstable; urgency=medium
 
   * Improving boilerplate in d/control (Closes: #771722).
commit 186f48a4ef9b50d2afb0161b38f092d5fe673407
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Mon Jul 11 20:22:06 2016 +0200

    Updating copyright file.

diff --git a/debian/copyright b/debian/copyright
index cf3a2b5..f06a068 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -2,9 +2,9 @@ Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
 
 Files: *
 Copyright: 2013-2015 NaN-tic
-           2008-2015 Cédric Krier
+           2008-2016 Cédric Krier
            2008-2013 Bertrand Chenal
-           2008-2015 B2CK SPRL
+           2008-2016 B2CK SPRL
 License: GPL-3+
 
 Files: debian/*
commit a065e59e237fe2dca2c671d6c576da28ea87ce8b
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Mon Jul 11 20:22:06 2016 +0200

    Merging upstream version 3.6.1.

diff --git a/CHANGELOG b/CHANGELOG
index 4465fe9..8c48193 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 3.6.1 - 2016-07-04
+* Bug fixes (see mercurial logs for details)
+
 Version 3.6.0 - 2015-04-20
 * Bug fixes (see mercurial logs for details)
 * Add support for PyPy
diff --git a/COPYRIGHT b/COPYRIGHT
index 4f0ee3a..4c58e29 100644
--- a/COPYRIGHT
+++ b/COPYRIGHT
@@ -1,7 +1,7 @@
 Copyright (C) 2013-2015 NaN-tic.
-Copyright (C) 2008-2015 Cédric Krier.
+Copyright (C) 2008-2016 Cédric Krier.
 Copyright (C) 2008-2013 Bertrand Chenal.
-Copyright (C) 2008-2015 B2CK SPRL.
+Copyright (C) 2008-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 129731f..13904cb 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: trytond_stock_supply
-Version: 3.6.0
+Version: 3.6.1
 Summary: Tryton module for stock supply
 Home-page: http://www.tryton.org/
 Author: Tryton
diff --git a/purchase_request.py b/purchase_request.py
index d425eef..bd9e645 100644
--- a/purchase_request.py
+++ b/purchase_request.py
@@ -5,6 +5,7 @@ import operator
 from itertools import groupby
 from functools import partial
 from decimal import Decimal
+from collections import defaultdict
 from trytond.model import ModelView, ModelSQL, fields
 from trytond.wizard import Wizard, StateView, StateAction, StateTransition, \
     Button
@@ -241,8 +242,9 @@ class PurchaseRequest(ModelSQL, ModelView):
                     pbl = Product.products_by_location(warehouse_ids,
                         product_ids, with_childs=True)
                 for warehouse_id in warehouse_ids:
-                    min_date_qties = dict((x, pbl.pop((warehouse_id, x), 0))
-                        for x in product_ids)
+                    min_date_qties = defaultdict(lambda: 0,
+                        ((x, pbl.pop((warehouse_id, x), 0))
+                            for x in product_ids))
                     # Search for shortage between min-max
                     shortages = cls.get_shortage(warehouse_id, product_ids,
                         min_date, max_date, min_date_qties=min_date_qties,
@@ -300,8 +302,8 @@ class PurchaseRequest(ModelSQL, ModelView):
         for request in requests:
             pline = request.purchase_line
             # Skip incoherent request
-            if request.product.id != pline.product.id or \
-                    request.warehouse.id != pline.purchase.warehouse.id:
+            if (request.product != pline.product
+                    or request.warehouse != pline.purchase.warehouse):
                 continue
             # Take smallest amount between request and purchase line
             req_qty = Uom.compute_qty(request.uom, request.quantity,
diff --git a/tryton.cfg b/tryton.cfg
index f9177b7..4f8e0c6 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
 [tryton]
-version=3.6.0
+version=3.6.1
 depends:
     account
     ir
diff --git a/trytond_stock_supply.egg-info/PKG-INFO b/trytond_stock_supply.egg-info/PKG-INFO
index c0844f6..e126996 100644
--- a/trytond_stock_supply.egg-info/PKG-INFO
+++ b/trytond_stock_supply.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: trytond-stock-supply
-Version: 3.6.0
+Version: 3.6.1
 Summary: Tryton module for stock supply
 Home-page: http://www.tryton.org/
 Author: Tryton
diff --git a/trytond_stock_supply.egg-info/requires.txt b/trytond_stock_supply.egg-info/requires.txt
index be181aa..eb737c6 100644
--- a/trytond_stock_supply.egg-info/requires.txt
+++ b/trytond_stock_supply.egg-info/requires.txt
@@ -4,4 +4,4 @@ trytond_party >= 3.6, < 3.7
 trytond_product >= 3.6, < 3.7
 trytond_purchase >= 3.6, < 3.7
 trytond_stock >= 3.6, < 3.7
-trytond >= 3.6, < 3.7
\ No newline at end of file
+trytond >= 3.6, < 3.7
-- 
tryton-modules-stock-supply



More information about the tryton-debian-vcs mailing list