[tryton-debian-vcs] tryton-modules-stock-forecast branch upstream-4.2 updated. upstream/4.2.1-1-g3ae0f2b
Mathias Behrle
tryton-debian-vcs at alioth.debian.org
Sun Nov 12 16:36:01 UTC 2017
The following commit has been merged in the upstream-4.2 branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-modules-stock-forecast.git;a=commitdiff;h=upstream/4.2.1-1-g3ae0f2b
commit 3ae0f2ba016dec054ca946806619d2a4f792f3ac
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Sat Nov 11 14:40:44 2017 +0100
Adding upstream version 4.2.2.
Signed-off-by: Mathias Behrle <mathiasb at m9s.biz>
diff --git a/.drone.yml b/.drone.yml
new file mode 100644
index 0000000..c4fd423
--- /dev/null
+++ b/.drone.yml
@@ -0,0 +1,9 @@
+image: python:all
+env:
+ - POSTGRESQL_URI=postgresql://postgres@127.0.0.1:5432/
+ - MYSQL_URI=mysql://root@127.0.0.1:3306/
+script:
+ - pip install tox
+ - tox -e "{py27,py33,py34,py35}-{sqlite,postgresql}" --skip-missing-interpreters
+services:
+ - postgres
diff --git a/CHANGELOG b/CHANGELOG
index b98dcc2..e926643 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 4.2.2 - 2017-11-07
+* Bug fixes (see mercurial logs for details)
+
Version 4.2.1 - 2017-09-04
* Bug fixes (see mercurial logs for details)
diff --git a/PKG-INFO b/PKG-INFO
index 53498e5..19b582e 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: trytond_stock_forecast
-Version: 4.2.1
+Version: 4.2.2
Summary: Tryton module with stock forecasts
Home-page: http://www.tryton.org/
Author: Tryton
diff --git a/forecast.py b/forecast.py
index 360ce39..ee518f7 100644
--- a/forecast.py
+++ b/forecast.py
@@ -193,7 +193,7 @@ class Forecast(Workflow, ModelSQL, ModelView):
@classmethod
def search_rec_name(cls, name, clause):
- return [('warehouse',) + tuple(clause[1:])]
+ return [('warehouse.rec_name',) + tuple(clause[1:])]
@classmethod
def validate(cls, forecasts):
@@ -403,7 +403,7 @@ class ForecastLine(ModelSQL, ModelView):
@classmethod
def search_rec_name(cls, name, clause):
- return [('product',) + tuple(clause[1:])]
+ return [('product.rec_name',) + tuple(clause[1:])]
@classmethod
def get_quantity_executed(cls, lines, name):
diff --git a/tox.ini b/tox.ini
new file mode 100644
index 0000000..08e43cf
--- /dev/null
+++ b/tox.ini
@@ -0,0 +1,18 @@
+[tox]
+envlist = {py27,py33,py34,py35}-{sqlite,postgresql,mysql},pypy-{sqlite,postgresql}
+
+[testenv]
+commands = {envpython} setup.py test
+deps =
+ {py27,py33,py34,py35}-postgresql: psycopg2 >= 2.5
+ pypy-postgresql: psycopg2cffi >= 2.5
+ mysql: MySQL-python
+ sqlite: sqlitebck
+setenv =
+ sqlite: TRYTOND_DATABASE_URI={env:SQLITE_URI:sqlite://}
+ postgresql: TRYTOND_DATABASE_URI={env:POSTGRESQL_URI:postgresql://}
+ mysql: TRYTOND_DATABASE_URI={env:MYSQL_URI:mysql://}
+ sqlite: DB_NAME={env:SQLITE_NAME::memory:}
+ postgresql: DB_NAME={env:POSTGRESQL_NAME:test}
+ mysql: DB_NAME={env:MYSQL_NAME:test}
+install_command = pip install --pre --find-links https://trydevpi.tryton.org/ {opts} {packages}
diff --git a/tryton.cfg b/tryton.cfg
index a83e83a..c7dedf4 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
[tryton]
-version=4.2.1
+version=4.2.2
depends:
company
ir
diff --git a/trytond_stock_forecast.egg-info/PKG-INFO b/trytond_stock_forecast.egg-info/PKG-INFO
index 00dfc75..7416c4d 100644
--- a/trytond_stock_forecast.egg-info/PKG-INFO
+++ b/trytond_stock_forecast.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: trytond-stock-forecast
-Version: 4.2.1
+Version: 4.2.2
Summary: Tryton module with stock forecasts
Home-page: http://www.tryton.org/
Author: Tryton
diff --git a/trytond_stock_forecast.egg-info/SOURCES.txt b/trytond_stock_forecast.egg-info/SOURCES.txt
index 4571b4c..e8fe21a 100644
--- a/trytond_stock_forecast.egg-info/SOURCES.txt
+++ b/trytond_stock_forecast.egg-info/SOURCES.txt
@@ -1,11 +1,16 @@
+.drone.yml
+.hgtags
CHANGELOG
COPYRIGHT
INSTALL
LICENSE
MANIFEST.in
README
+__init__.py
+forecast.py
forecast.xml
setup.py
+tox.ini
tryton.cfg
./__init__.py
./forecast.py
@@ -56,6 +61,8 @@ locale/pt_BR.po
locale/ru.po
locale/sl.po
locale/zh_CN.po
+tests/__init__.py
+tests/test_stock_forecast.py
trytond_stock_forecast.egg-info/PKG-INFO
trytond_stock_forecast.egg-info/SOURCES.txt
trytond_stock_forecast.egg-info/dependency_links.txt
--
tryton-modules-stock-forecast
More information about the tryton-debian-vcs
mailing list