[tryton-debian-vcs] tryton-modules-product-cost-fifo branch debian updated. debian/4.0.1-1-3-g934b0ca
Mathias Behrle
tryton-debian-vcs at alioth.debian.org
Tue Dec 6 16:01:04 UTC 2016
The following commit has been merged in the debian branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-modules-product-cost-fifo.git;a=commitdiff;h=debian/4.0.1-1-3-g934b0ca
commit 934b0ca4dc5d6ecf68c27aa0b897a37b2d235356
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Tue Dec 6 10:58:19 2016 +0100
Releasing debian version 4.2.0-1.
Signed-off-by: Mathias Behrle <mathiasb at m9s.biz>
diff --git a/debian/changelog b/debian/changelog
index e74674a..d588b89 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+tryton-modules-product-cost-fifo (4.2.0-1) unstable; urgency=medium
+
+ * Updating to Standards-Version: 3.9.8, no changes needed.
+ * Merging upstream version 4.2.0.
+
+ -- Mathias Behrle <mathiasb at m9s.biz> Mon, 05 Dec 2016 15:31:24 +0100
+
tryton-modules-product-cost-fifo (4.0.1-1) unstable; urgency=medium
* Updating signing-key.asc with the actual upstream maintainer keys.
commit 67f5576e15ce1588e7a7154f7d84b213a7229a27
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Mon Dec 5 09:34:33 2016 +0100
Merging upstream version 4.2.0.
diff --git a/CHANGELOG b/CHANGELOG
index 34afde2..6323df8 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,4 +1,4 @@
-Version 4.0.1 - 2016-05-11
+Version 4.2.0 - 2016-11-28
* Bug fixes (see mercurial logs for details)
Version 4.0.0 - 2016-05-02
diff --git a/INSTALL b/INSTALL
index 0b9527f..d5e81d8 100644
--- a/INSTALL
+++ b/INSTALL
@@ -24,7 +24,7 @@ site-packages directory on your system.
For advanced options, please refer to the easy_install and/or the distutils
documentation:
- http://peak.telecommunity.com/DevCenter/EasyInstall
+ http://setuptools.readthedocs.io/en/latest/easy_install.html
http://docs.python.org/inst/inst.html
To use without installation, extract the archive into ``trytond/modules`` with
diff --git a/PKG-INFO b/PKG-INFO
index 8e5b8d2..4146280 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,12 +1,12 @@
Metadata-Version: 1.1
Name: trytond_product_cost_fifo
-Version: 4.0.1
+Version: 4.2.0
Summary: Tryton module to add FIFO cost method
Home-page: http://www.tryton.org/
Author: Tryton
Author-email: issue_tracker at tryton.org
License: GPL-3
-Download-URL: http://downloads.tryton.org/4.0/
+Download-URL: http://downloads.tryton.org/4.2/
Description: trytond_product_cost_fifo
=========================
@@ -63,6 +63,7 @@ Classifier: Natural Language :: French
Classifier: Natural Language :: German
Classifier: Natural Language :: Hungarian
Classifier: Natural Language :: Italian
+Classifier: Natural Language :: Polish
Classifier: Natural Language :: Portuguese (Brazilian)
Classifier: Natural Language :: Russian
Classifier: Natural Language :: Slovenian
diff --git a/locale/bg_BG.po b/locale/bg.po
similarity index 100%
copy from locale/bg_BG.po
copy to locale/bg.po
diff --git a/locale/ca_ES.po b/locale/ca.po
similarity index 100%
rename from locale/ca_ES.po
rename to locale/ca.po
diff --git a/locale/cs_CZ.po b/locale/cs.po
similarity index 100%
rename from locale/cs_CZ.po
rename to locale/cs.po
diff --git a/locale/de_DE.po b/locale/de.po
similarity index 87%
rename from locale/de_DE.po
rename to locale/de.po
index 7289fbd..6182154 100644
--- a/locale/de_DE.po
+++ b/locale/de.po
@@ -19,7 +19,3 @@ msgstr "Anzahl FIFO"
msgctxt "selection:product.template,cost_price_method:"
msgid "FIFO"
msgstr "FIFO"
-
-msgctxt "selection:product.product,cost_price_method:"
-msgid "FIFO"
-msgstr "FIFO"
diff --git a/locale/es_ES.po b/locale/es.po
similarity index 100%
rename from locale/es_ES.po
rename to locale/es.po
diff --git a/locale/es_EC.po b/locale/es_419.po
similarity index 83%
rename from locale/es_EC.po
rename to locale/es_419.po
index 889e705..17d5aa5 100644
--- a/locale/es_EC.po
+++ b/locale/es_419.po
@@ -4,7 +4,7 @@ msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "error:stock.move:"
msgid "FIFO quantity can not be greater than quantity."
-msgstr "Cantidad FIFO no puede ser mayor que la cantidad."
+msgstr ""
msgctxt "error:stock.move:"
msgid "You can not delete move \"%s\" that is used for FIFO cost price."
@@ -14,8 +14,8 @@ msgstr ""
msgctxt "field:stock.move,fifo_quantity:"
msgid "FIFO Quantity"
-msgstr "Cantidad FIFO"
+msgstr ""
msgctxt "selection:product.template,cost_price_method:"
msgid "FIFO"
-msgstr "FIFO"
+msgstr ""
diff --git a/locale/es_AR.po b/locale/es_AR.po
deleted file mode 100644
index 39c3c57..0000000
--- a/locale/es_AR.po
+++ /dev/null
@@ -1,21 +0,0 @@
-#
-msgid ""
-msgstr "Content-Type: text/plain; charset=utf-8\n"
-
-msgctxt "error:stock.move:"
-msgid "FIFO quantity can not be greater than quantity."
-msgstr "Cantidad PEPS no puede ser mayor que cantidad."
-
-msgctxt "error:stock.move:"
-msgid "You can not delete move \"%s\" that is used for FIFO cost price."
-msgstr ""
-"No puede eliminar el movimiento «%s» que está siendo usado por el precio de "
-"costo PEPS."
-
-msgctxt "field:stock.move,fifo_quantity:"
-msgid "FIFO Quantity"
-msgstr "Cantidad PEPS"
-
-msgctxt "selection:product.template,cost_price_method:"
-msgid "FIFO"
-msgstr "PEPS"
diff --git a/locale/es_CO.po b/locale/es_CO.po
deleted file mode 100644
index d979fa7..0000000
--- a/locale/es_CO.po
+++ /dev/null
@@ -1,19 +0,0 @@
-#
-msgid ""
-msgstr "Content-Type: text/plain; charset=utf-8\n"
-
-msgctxt "error:stock.move:"
-msgid "FIFO quantity can not be greater than quantity."
-msgstr "Cantidad PEPS no puede ser mayor que la cantidad."
-
-msgctxt "error:stock.move:"
-msgid "You can not delete move \"%s\" that is used for FIFO cost price."
-msgstr "Usted no puede eliminar movimientos \"%s\" utilizados para costos PEPS."
-
-msgctxt "field:stock.move,fifo_quantity:"
-msgid "FIFO Quantity"
-msgstr "Cantidad PEPS"
-
-msgctxt "selection:product.template,cost_price_method:"
-msgid "FIFO"
-msgstr "PEPS"
diff --git a/locale/es_MX.po b/locale/es_MX.po
deleted file mode 100644
index d3d0bb1..0000000
--- a/locale/es_MX.po
+++ /dev/null
@@ -1,21 +0,0 @@
-#
-msgid ""
-msgstr "Content-Type: text/plain; charset=utf-8\n"
-
-msgctxt "error:stock.move:"
-msgid "FIFO quantity can not be greater than quantity."
-msgstr "Cantidad PEPS (FIFO) no puede ser mayor que cantidad."
-
-msgctxt "error:stock.move:"
-msgid "You can not delete move \"%s\" that is used for FIFO cost price."
-msgstr ""
-"No puede eliminar el movimiento \"%s\" que está siendo usado por el precio "
-"de costo PEPS (FIFO)."
-
-msgctxt "field:stock.move,fifo_quantity:"
-msgid "FIFO Quantity"
-msgstr "Cantidad PEPS (FIFO)"
-
-msgctxt "selection:product.template,cost_price_method:"
-msgid "FIFO"
-msgstr "PEPS (FIFO)"
diff --git a/locale/fr_FR.po b/locale/fr.po
similarity index 100%
rename from locale/fr_FR.po
rename to locale/fr.po
diff --git a/locale/lo_LA.po b/locale/lo.po
similarity index 100%
rename from locale/lo_LA.po
rename to locale/lo.po
diff --git a/locale/lt_LT.po b/locale/lt.po
similarity index 100%
rename from locale/lt_LT.po
rename to locale/lt.po
diff --git a/locale/nl_NL.po b/locale/nl.po
similarity index 100%
rename from locale/nl_NL.po
rename to locale/nl.po
diff --git a/locale/bg_BG.po b/locale/pl.po
similarity index 73%
rename from locale/bg_BG.po
rename to locale/pl.po
index 7c7747c..0c58da5 100644
--- a/locale/bg_BG.po
+++ b/locale/pl.po
@@ -4,15 +4,15 @@ msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "error:stock.move:"
msgid "FIFO quantity can not be greater than quantity."
-msgstr ""
+msgstr "Ilość FIFO nie może być większa od ilości."
msgctxt "error:stock.move:"
msgid "You can not delete move \"%s\" that is used for FIFO cost price."
-msgstr ""
+msgstr "Nie możesz usunąć przesunięcia \"%s\" z ceną FIFO."
msgctxt "field:stock.move,fifo_quantity:"
msgid "FIFO Quantity"
-msgstr "FIFO количество"
+msgstr "Ilość FIFO"
msgctxt "selection:product.template,cost_price_method:"
msgid "FIFO"
diff --git a/locale/ru_RU.po b/locale/ru.po
similarity index 100%
rename from locale/ru_RU.po
rename to locale/ru.po
diff --git a/locale/sl_SI.po b/locale/sl.po
similarity index 87%
rename from locale/sl_SI.po
rename to locale/sl.po
index 224322c..9498118 100644
--- a/locale/sl_SI.po
+++ b/locale/sl.po
@@ -17,3 +17,7 @@ msgstr "FIFO količina"
msgctxt "selection:product.template,cost_price_method:"
msgid "FIFO"
msgstr "FIFO"
+
+msgctxt "selection:product.product,cost_price_method:"
+msgid "FIFO"
+msgstr "FIFO"
diff --git a/move.py b/move.py
index 0e9c4ee..beda2e7 100644
--- a/move.py
+++ b/move.py
@@ -48,6 +48,7 @@ class Move:
cost_price = Decimal("0.0")
consumed_qty = 0.0
+ to_write = []
for move, move_qty in fifo_moves:
consumed_qty += move_qty
@@ -66,9 +67,11 @@ class Move:
move.uom, round=False)
# Use write as move instance quantity was modified to call
# _update_product_cost_price
- self.write([self.__class__(move.id)], {
- 'fifo_quantity': (move.fifo_quantity or 0.0) + move_qty,
- })
+ new_quantity = (move.fifo_quantity or 0.0) + move_qty
+ to_write.extend(([self.__class__(move.id)], {
+ 'fifo_quantity': new_quantity,
+ }))
+ self.__class__.write(*to_write)
if Decimal(str(consumed_qty)) != Decimal("0"):
cost_price = cost_price / Decimal(str(consumed_qty))
diff --git a/setup.py b/setup.py
index a2f3d9b..e16d69a 100644
--- a/setup.py
+++ b/setup.py
@@ -95,6 +95,7 @@ setup(name=name,
'Natural Language :: German',
'Natural Language :: Hungarian',
'Natural Language :: Italian',
+ 'Natural Language :: Polish',
'Natural Language :: Portuguese (Brazilian)',
'Natural Language :: Russian',
'Natural Language :: Slovenian',
diff --git a/tryton.cfg b/tryton.cfg
index 4fda338..9a5eb3b 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
[tryton]
-version=4.0.1
+version=4.2.0
depends:
ir
product
diff --git a/trytond_product_cost_fifo.egg-info/PKG-INFO b/trytond_product_cost_fifo.egg-info/PKG-INFO
index 6ba7b00..158b63d 100644
--- a/trytond_product_cost_fifo.egg-info/PKG-INFO
+++ b/trytond_product_cost_fifo.egg-info/PKG-INFO
@@ -1,12 +1,12 @@
Metadata-Version: 1.1
Name: trytond-product-cost-fifo
-Version: 4.0.1
+Version: 4.2.0
Summary: Tryton module to add FIFO cost method
Home-page: http://www.tryton.org/
Author: Tryton
Author-email: issue_tracker at tryton.org
License: GPL-3
-Download-URL: http://downloads.tryton.org/4.0/
+Download-URL: http://downloads.tryton.org/4.2/
Description: trytond_product_cost_fifo
=========================
@@ -63,6 +63,7 @@ Classifier: Natural Language :: French
Classifier: Natural Language :: German
Classifier: Natural Language :: Hungarian
Classifier: Natural Language :: Italian
+Classifier: Natural Language :: Polish
Classifier: Natural Language :: Portuguese (Brazilian)
Classifier: Natural Language :: Russian
Classifier: Natural Language :: Slovenian
diff --git a/trytond_product_cost_fifo.egg-info/SOURCES.txt b/trytond_product_cost_fifo.egg-info/SOURCES.txt
index 4ea2d75..88861d5 100644
--- a/trytond_product_cost_fifo.egg-info/SOURCES.txt
+++ b/trytond_product_cost_fifo.egg-info/SOURCES.txt
@@ -10,46 +10,42 @@ tryton.cfg
./move.py
./product.py
./tryton.cfg
-./locale/bg_BG.po
-./locale/ca_ES.po
-./locale/cs_CZ.po
-./locale/de_DE.po
-./locale/es_AR.po
-./locale/es_CO.po
-./locale/es_EC.po
-./locale/es_ES.po
-./locale/es_MX.po
-./locale/fr_FR.po
+./locale/bg.po
+./locale/ca.po
+./locale/cs.po
+./locale/de.po
+./locale/es.po
+./locale/es_419.po
+./locale/fr.po
./locale/hu_HU.po
./locale/it_IT.po
./locale/ja_JP.po
-./locale/lo_LA.po
-./locale/lt_LT.po
-./locale/nl_NL.po
+./locale/lo.po
+./locale/lt.po
+./locale/nl.po
+./locale/pl.po
./locale/pt_BR.po
-./locale/ru_RU.po
-./locale/sl_SI.po
+./locale/ru.po
+./locale/sl.po
./locale/zh_CN.po
doc/index.rst
-locale/bg_BG.po
-locale/ca_ES.po
-locale/cs_CZ.po
-locale/de_DE.po
-locale/es_AR.po
-locale/es_CO.po
-locale/es_EC.po
-locale/es_ES.po
-locale/es_MX.po
-locale/fr_FR.po
+locale/bg.po
+locale/ca.po
+locale/cs.po
+locale/de.po
+locale/es.po
+locale/es_419.po
+locale/fr.po
locale/hu_HU.po
locale/it_IT.po
locale/ja_JP.po
-locale/lo_LA.po
-locale/lt_LT.po
-locale/nl_NL.po
+locale/lo.po
+locale/lt.po
+locale/nl.po
+locale/pl.po
locale/pt_BR.po
-locale/ru_RU.po
-locale/sl_SI.po
+locale/ru.po
+locale/sl.po
locale/zh_CN.po
trytond_product_cost_fifo.egg-info/PKG-INFO
trytond_product_cost_fifo.egg-info/SOURCES.txt
diff --git a/trytond_product_cost_fifo.egg-info/requires.txt b/trytond_product_cost_fifo.egg-info/requires.txt
index e0484ff..0a18204 100644
--- a/trytond_product_cost_fifo.egg-info/requires.txt
+++ b/trytond_product_cost_fifo.egg-info/requires.txt
@@ -1,3 +1,3 @@
-trytond_product >= 4.0, < 4.1
-trytond_stock >= 4.0, < 4.1
-trytond >= 4.0, < 4.1
+trytond_product >= 4.2, < 4.3
+trytond_stock >= 4.2, < 4.3
+trytond >= 4.2, < 4.3
--
tryton-modules-product-cost-fifo
More information about the tryton-debian-vcs
mailing list