[tryton-debian-vcs] tryton-modules-product-cost-fifo branch debian-stretch-3.6 updated. debian/3.6.0-1-6-g7611f4f
Mathias Behrle
tryton-debian-vcs at alioth.debian.org
Wed Dec 23 16:53:06 UTC 2015
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-product-cost-fifo.git;a=commitdiff;h=debian/3.6.0-1-6-g7611f4f
commit 7611f4fb6a08d4e5af83d2961848cddc2bdf91fb
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Wed Dec 23 14:23:08 2015 +0100
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 8c7a702..f9f997c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,13 @@
+tryton-modules-product-cost-fifo (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.
+ * Merging upstream version 3.6.1.
+
+ -- Mathias Behrle <mathiasb at m9s.biz> Wed, 23 Dec 2015 14:23:08 +0100
+
tryton-modules-product-cost-fifo (3.6.0-1) unstable; urgency=medium
* Wrapping and sorting control files (wrap-and-sort -bts).
commit a580d60191914050d7d8f240b778e8fce7173e91
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Wed Dec 23 14:23:06 2015 +0100
Merging upstream version 3.6.1.
diff --git a/CHANGELOG b/CHANGELOG
index 7458b7e..3ba52f5 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 3.6.1 - 2015-12-22
+* 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/PKG-INFO b/PKG-INFO
index 8998fe5..0296aa4 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: trytond_product_cost_fifo
-Version: 3.6.0
+Version: 3.6.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 861f4e2..2ed3da0 100644
--- a/move.py
+++ b/move.py
@@ -4,6 +4,7 @@ from decimal import Decimal
from trytond.model import Workflow, ModelView, fields
from trytond.pyson import Eval
from trytond.pool import Pool, PoolMeta
+from trytond.transaction import Transaction
__all__ = ['Move']
__metaclass__ = PoolMeta
@@ -38,8 +39,9 @@ class Move:
fifo_quantity on the concerned incomming moves. Return the
cost price for outputing the given product and quantity.
'''
-
- Uom = Pool().get('product.uom')
+ pool = Pool()
+ Uom = pool.get('product.uom')
+ Currency = pool.get('currency.currency')
total_qty = Uom.compute_qty(self.uom, self.quantity,
self.product.default_uom, round=False)
@@ -51,7 +53,11 @@ class Move:
for move, move_qty in fifo_moves:
consumed_qty += move_qty
- move_unit_price = Uom.compute_price(move.uom, move.unit_price,
+ with Transaction().set_context(date=move.effective_date):
+ move_unit_price = Currency.compute(
+ move.currency, move.unit_price,
+ self.company.currency, round=False)
+ move_unit_price = Uom.compute_price(move.uom, move_unit_price,
move.product.default_uom)
cost_price += move_unit_price * Decimal(str(move_qty))
@@ -89,7 +95,7 @@ class Move:
and self.to_location.type != 'storage'
and self.product.cost_price_method == 'fifo'):
cost_price = self._update_fifo_out_product_cost_price()
- if not self.cost_price:
+ if self.cost_price is None:
self.cost_price = cost_price
super(Move, self)._do()
diff --git a/tryton.cfg b/tryton.cfg
index 986a5f0..43a6416 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
[tryton]
-version=3.6.0
+version=3.6.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 ea92497..e95336e 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: 3.6.0
+Version: 3.6.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