[tryton-debian-vcs] tryton-server branch upstream-4.0 updated. upstream/4.0.10-1-g852547d
Mathias Behrle
tryton-debian-vcs at alioth.debian.org
Thu Aug 17 12:46:22 UTC 2017
The following commit has been merged in the upstream-4.0 branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-server.git;a=commitdiff;h=upstream/4.0.10-1-g852547d
commit 852547d28699a7e0cf3a4925fed60c2d40db3962
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Thu Aug 17 13:01:07 2017 +0200
Adding upstream version 4.0.11.
Signed-off-by: Mathias Behrle <mathiasb at m9s.biz>
diff --git a/CHANGELOG b/CHANGELOG
index d5cdf55..2a74ca1 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 4.0.11 - 2017-08-08
+* Bug fixes (see mercurial logs for details)
+
Version 4.0.10 - 2017-07-01
* Bug fixes (see mercurial logs for details)
diff --git a/PKG-INFO b/PKG-INFO
index 54185f3..a82318c 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: trytond
-Version: 4.0.10
+Version: 4.0.11
Summary: Tryton server
Home-page: http://www.tryton.org/
Author: Tryton
diff --git a/trytond.egg-info/PKG-INFO b/trytond.egg-info/PKG-INFO
index 54185f3..a82318c 100644
--- a/trytond.egg-info/PKG-INFO
+++ b/trytond.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: trytond
-Version: 4.0.10
+Version: 4.0.11
Summary: Tryton server
Home-page: http://www.tryton.org/
Author: Tryton
diff --git a/trytond/__init__.py b/trytond/__init__.py
index fc11cec..0ce6a06 100644
--- a/trytond/__init__.py
+++ b/trytond/__init__.py
@@ -5,7 +5,7 @@ import time
import logging
from email import charset
-__version__ = "4.0.10"
+__version__ = "4.0.11"
logger = logging.getLogger(__name__)
os.environ['TZ'] = 'UTC'
diff --git a/trytond/model/modelsql.py b/trytond/model/modelsql.py
index 33a3d43..13f9e81 100644
--- a/trytond/model/modelsql.py
+++ b/trytond/model/modelsql.py
@@ -596,13 +596,13 @@ class ModelSQL(ModelStorage):
cls.__insert_history(new_ids)
+ field_names = cls._fields.keys()
+ cls._update_mptt(field_names, [new_ids] * len(field_names))
+
records = cls.browse(new_ids)
for sub_records in grouped_slice(records, cache_size()):
cls._validate(sub_records)
- field_names = cls._fields.keys()
- cls._update_mptt(field_names, [new_ids] * len(field_names))
-
cls.trigger_create(records)
return records
diff --git a/trytond/tools/misc.py b/trytond/tools/misc.py
index 94de9cb..d2454cf 100644
--- a/trytond/tools/misc.py
+++ b/trytond/tools/misc.py
@@ -72,12 +72,14 @@ def file_open(name, mode="r", subdir='modules', encoding=None):
epoint = EGG_MODULES[module_name]
mod_path = os.path.join(epoint.dist.location,
*epoint.module_name.split('.')[:-1])
+ mod_path = os.path.abspath(mod_path)
egg_name = secure_join(mod_path, name)
if not os.path.isfile(egg_name):
# Find module in path
for path in sys.path:
mod_path = os.path.join(path,
*epoint.module_name.split('.')[:-1])
+ mod_path = os.path.abspath(mod_path)
egg_name = secure_join(mod_path, name)
if os.path.isfile(egg_name):
break
--
tryton-server
More information about the tryton-debian-vcs
mailing list