diff -Nru tryton-modules-product-cost-fifo-5.0.8/CHANGELOG tryton-modules-product-cost-fifo-5.0.9/CHANGELOG --- tryton-modules-product-cost-fifo-5.0.8/CHANGELOG 2020-09-16 12:34:17.000000000 +0000 +++ tryton-modules-product-cost-fifo-5.0.9/CHANGELOG 2020-11-11 15:18:49.000000000 +0000 @@ -1,3 +1,6 @@ +Version 5.0.9 - 2020-11-11 +* Bug fixes (see mercurial logs for details) + Version 5.0.8 - 2020-09-16 * Bug fixes (see mercurial logs for details) diff -Nru tryton-modules-product-cost-fifo-5.0.8/debian/changelog tryton-modules-product-cost-fifo-5.0.9/debian/changelog --- tryton-modules-product-cost-fifo-5.0.8/debian/changelog 2020-09-26 08:06:10.000000000 +0000 +++ tryton-modules-product-cost-fifo-5.0.9/debian/changelog 2020-12-17 08:56:08.000000000 +0000 @@ -1,3 +1,9 @@ +tryton-modules-product-cost-fifo (5.0.9-1) unstable; urgency=medium + + * Merging upstream version 5.0.9. + + -- Mathias Behrle Thu, 17 Dec 2020 09:56:08 +0100 + tryton-modules-product-cost-fifo (5.0.8-1) unstable; urgency=medium * Merging upstream version 5.0.8. diff -Nru tryton-modules-product-cost-fifo-5.0.8/.hgtags tryton-modules-product-cost-fifo-5.0.9/.hgtags --- tryton-modules-product-cost-fifo-5.0.8/.hgtags 2020-09-16 12:34:18.000000000 +0000 +++ tryton-modules-product-cost-fifo-5.0.9/.hgtags 2020-11-11 15:18:49.000000000 +0000 @@ -26,3 +26,4 @@ 82c1094133a776d57db31385ef083e95052cf6e1 5.0.6 7d2826dd6a347be26010546f500636c21445c040 5.0.7 3f22a6dbbf8b3a0a77566460a95acd93d8c5766d 5.0.8 +9c7f4d2b90351fc337313fd19fb4c4250d3faad0 5.0.9 diff -Nru tryton-modules-product-cost-fifo-5.0.8/move.py tryton-modules-product-cost-fifo-5.0.9/move.py --- tryton-modules-product-cost-fifo-5.0.8/move.py 2020-09-06 15:12:47.000000000 +0000 +++ tryton-modules-product-cost-fifo-5.0.9/move.py 2020-10-30 18:57:15.000000000 +0000 @@ -66,6 +66,9 @@ move_qty = Uom.compute_qty(self.product.default_uom, move_qty, move.uom, round=False) move.fifo_quantity = (move.fifo_quantity or 0.0) + move_qty + # Due to float, the fifo quantity result can exceed the quantity. + assert move.quantity >= move.fifo_quantity - move.uom.rounding + move.fifo_quantity = min(move.fifo_quantity, move.quantity) to_save.append(move) if to_save: # TODO save in do method when product change diff -Nru tryton-modules-product-cost-fifo-5.0.8/PKG-INFO tryton-modules-product-cost-fifo-5.0.9/PKG-INFO --- tryton-modules-product-cost-fifo-5.0.8/PKG-INFO 2020-09-16 12:34:20.000000000 +0000 +++ tryton-modules-product-cost-fifo-5.0.9/PKG-INFO 2020-11-11 15:18:51.000000000 +0000 @@ -1,6 +1,6 @@ Metadata-Version: 1.2 Name: trytond_product_cost_fifo -Version: 5.0.8 +Version: 5.0.9 Summary: Tryton module to add FIFO cost method Home-page: http://www.tryton.org/ Author: Tryton diff -Nru tryton-modules-product-cost-fifo-5.0.8/tryton.cfg tryton-modules-product-cost-fifo-5.0.9/tryton.cfg --- tryton-modules-product-cost-fifo-5.0.8/tryton.cfg 2020-07-01 20:39:39.000000000 +0000 +++ tryton-modules-product-cost-fifo-5.0.9/tryton.cfg 2020-09-16 12:34:27.000000000 +0000 @@ -1,5 +1,5 @@ [tryton] -version=5.0.8 +version=5.0.9 depends: ir product diff -Nru tryton-modules-product-cost-fifo-5.0.8/trytond_product_cost_fifo.egg-info/PKG-INFO tryton-modules-product-cost-fifo-5.0.9/trytond_product_cost_fifo.egg-info/PKG-INFO --- tryton-modules-product-cost-fifo-5.0.8/trytond_product_cost_fifo.egg-info/PKG-INFO 2020-09-16 12:34:19.000000000 +0000 +++ tryton-modules-product-cost-fifo-5.0.9/trytond_product_cost_fifo.egg-info/PKG-INFO 2020-11-11 15:18:50.000000000 +0000 @@ -1,6 +1,6 @@ Metadata-Version: 1.2 Name: trytond-product-cost-fifo -Version: 5.0.8 +Version: 5.0.9 Summary: Tryton module to add FIFO cost method Home-page: http://www.tryton.org/ Author: Tryton