[tryton-debian-vcs] tryton-modules-stock-forecast branch debian updated. debian/4.4.0-4-3-g2e487fc
Mathias Behrle
tryton-debian-vcs at alioth.debian.org
Tue Sep 5 13:25:34 UTC 2017
The following commit has been merged in the debian branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-modules-stock-forecast.git;a=commitdiff;h=debian/4.4.0-4-3-g2e487fc
commit 2e487fc73b4c738f4d84a7e38f22ebb2da725bea
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Tue Sep 5 14:30:31 2017 +0200
Releasing debian version 4.4.1-1.
Signed-off-by: Mathias Behrle <mathiasb at m9s.biz>
diff --git a/debian/changelog b/debian/changelog
index ec65ec4..a3c3540 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+tryton-modules-stock-forecast (4.4.1-1) unstable; urgency=medium
+
+ * Bump the Standards-Version to 4.1.0, no changes needed.
+ * Merging upstream version 4.4.1.
+
+ -- Mathias Behrle <mathiasb at m9s.biz> Tue, 05 Sep 2017 14:30:31 +0200
+
tryton-modules-stock-forecast (4.4.0-4) unstable; urgency=medium
* Switch to Python3.
commit cfd9b6a77f89e84aaed9295af8bd451f50ca42f9
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Tue Sep 5 14:30:30 2017 +0200
Merging upstream version 4.4.1.
diff --git a/CHANGELOG b/CHANGELOG
index f040a99..0446b0e 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 4.4.1 - 2017-09-04
+* Bug fixes (see mercurial logs for details)
+
Version 4.4.0 - 2017-05-01
* Bug fixes (see mercurial logs for details)
diff --git a/PKG-INFO b/PKG-INFO
index 7641544..e5f3668 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: trytond_stock_forecast
-Version: 4.4.0
+Version: 4.4.1
Summary: Tryton module with stock forecasts
Home-page: http://www.tryton.org/
Author: Tryton
diff --git a/forecast.py b/forecast.py
index b77ae73..360ce39 100644
--- a/forecast.py
+++ b/forecast.py
@@ -34,7 +34,6 @@ FORECAST_STATES = [
class Forecast(Workflow, ModelSQL, ModelView):
"Stock Forecast"
__name__ = "stock.forecast"
- _rec_name = 'warehouse'
warehouse = fields.Many2One(
'stock.location', 'Location', required=True,
domain=[('type', '=', 'warehouse')], states={
@@ -189,6 +188,13 @@ class Forecast(Workflow, ModelSQL, ModelView):
else:
return []
+ def get_rec_name(self, name):
+ return self.warehouse.rec_name
+
+ @classmethod
+ def search_rec_name(cls, name, clause):
+ return [('warehouse',) + tuple(clause[1:])]
+
@classmethod
def validate(cls, forecasts):
super(Forecast, cls).validate(forecasts)
@@ -297,7 +303,6 @@ class Forecast(Workflow, ModelSQL, ModelView):
class ForecastLine(ModelSQL, ModelView):
'Stock Forecast Line'
__name__ = 'stock.forecast.line'
- _rec_name = 'product'
_states = {
'readonly': Eval('forecast_state') != 'draft',
}
@@ -393,6 +398,13 @@ class ForecastLine(ModelSQL, ModelView):
if self.forecast:
return self.forecast.state
+ def get_rec_name(self, name):
+ return self.product.rec_name
+
+ @classmethod
+ def search_rec_name(cls, name, clause):
+ return [('product',) + tuple(clause[1:])]
+
@classmethod
def get_quantity_executed(cls, lines, name):
cursor = Transaction().connection.cursor()
diff --git a/setup.cfg b/setup.cfg
index 861a9f5..8bfd5a1 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,5 +1,4 @@
[egg_info]
tag_build =
tag_date = 0
-tag_svn_revision = 0
diff --git a/tryton.cfg b/tryton.cfg
index fb5bfc2..557296c 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
[tryton]
-version=4.4.0
+version=4.4.1
depends:
company
ir
diff --git a/trytond_stock_forecast.egg-info/PKG-INFO b/trytond_stock_forecast.egg-info/PKG-INFO
index 58e0b88..c82667f 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.4.0
+Version: 4.4.1
Summary: Tryton module with stock forecasts
Home-page: http://www.tryton.org/
Author: Tryton
commit d4083dfa50b6a67ba0663623939a8d92b9db4f45
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Tue Sep 5 13:27:13 2017 +0200
Bump the Standards-Version to 4.1.0, no changes needed.
diff --git a/debian/control b/debian/control
index 0399711..82d4d51 100644
--- a/debian/control
+++ b/debian/control
@@ -8,7 +8,7 @@ Build-Depends:
dh-python,
python3,
python3-setuptools,
-Standards-Version: 4.0.1
+Standards-Version: 4.1.0
Homepage: http://www.tryton.org/
Vcs-Browser: https://anonscm.debian.org/cgit/tryton/tryton-modules-stock-forecast.git
Vcs-Git: https://anonscm.debian.org/cgit/tryton/tryton-modules-stock-forecast.git
--
tryton-modules-stock-forecast
More information about the tryton-debian-vcs
mailing list