[tryton-debian-vcs] tryton-modules-product-cost-fifo branch upstream updated. upstream/4.2.0-1-g1ced9d7

Mathias Behrle tryton-debian-vcs at alioth.debian.org
Tue Mar 14 12:09:26 UTC 2017


The following commit has been merged in the upstream branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-modules-product-cost-fifo.git;a=commitdiff;h=upstream/4.2.0-1-g1ced9d7

commit 1ced9d76bc6bf6ca8d8ec99d02fbac215e746a88
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Tue Mar 14 10:43:51 2017 +0100

    Adding upstream version 4.2.1.
    
    Signed-off-by: Mathias Behrle <mathiasb at m9s.biz>

diff --git a/CHANGELOG b/CHANGELOG
index 6323df8..faf32e2 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 4.2.1 - 2017-03-10
+* Bug fixes (see mercurial logs for details)
+
 Version 4.2.0 - 2016-11-28
 * Bug fixes (see mercurial logs for details)
 
diff --git a/COPYRIGHT b/COPYRIGHT
index fcc5eeb..5af5413 100644
--- a/COPYRIGHT
+++ b/COPYRIGHT
@@ -1,6 +1,6 @@
-Copyright (C) 2008-2016 Cédric Krier.
+Copyright (C) 2008-2017 Cédric Krier.
 Copyright (C) 2008-2013 Bertrand Chenal.
-Copyright (C) 2008-2016 B2CK SPRL.
+Copyright (C) 2008-2017 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 4146280..94be49d 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: trytond_product_cost_fifo
-Version: 4.2.0
+Version: 4.2.1
 Summary: Tryton module to add FIFO cost method
 Home-page: http://www.tryton.org/
 Author: Tryton
diff --git a/move.py b/move.py
index beda2e7..93d9c7b 100644
--- a/move.py
+++ b/move.py
@@ -71,7 +71,8 @@ class Move:
             to_write.extend(([self.__class__(move.id)], {
                         'fifo_quantity': new_quantity,
                         }))
-        self.__class__.write(*to_write)
+        if to_write:
+            self.__class__.write(*to_write)
 
         if Decimal(str(consumed_qty)) != Decimal("0"):
             cost_price = cost_price / Decimal(str(consumed_qty))
diff --git a/tryton.cfg b/tryton.cfg
index 9a5eb3b..d1f466f 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
 [tryton]
-version=4.2.0
+version=4.2.1
 depends:
     ir
     product
diff --git a/trytond_product_cost_fifo.egg-info/PKG-INFO b/trytond_product_cost_fifo.egg-info/PKG-INFO
index 158b63d..3683c2b 100644
--- a/trytond_product_cost_fifo.egg-info/PKG-INFO
+++ b/trytond_product_cost_fifo.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: trytond-product-cost-fifo
-Version: 4.2.0
+Version: 4.2.1
 Summary: Tryton module to add FIFO cost method
 Home-page: http://www.tryton.org/
 Author: Tryton
-- 
tryton-modules-product-cost-fifo



More information about the tryton-debian-vcs mailing list