Hello community,

here is the log from the commit of package trytond for openSUSE:Factory checked 
in at 2020-08-21 19:19:06
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/trytond (Old)
 and      /work/SRC/openSUSE:Factory/.trytond.new.3399 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "trytond"

Fri Aug 21 19:19:06 2020 rev:46 rq:828498 version:5.0.25

Changes:
--------
--- /work/SRC/openSUSE:Factory/trytond/trytond.changes  2020-07-21 
15:55:05.836639615 +0200
+++ /work/SRC/openSUSE:Factory/.trytond.new.3399/trytond.changes        
2020-08-21 19:19:41.280900624 +0200
@@ -1,0 +2,5 @@
+Thu Aug 20 21:02:16 UTC 2020 - Axel Braun <axel.br...@gmx.de>
+
+- Version 5.0.25 - Bugfix Release
+
+-------------------------------------------------------------------

Old:
----
  trytond-5.0.24.tar.gz

New:
----
  trytond-5.0.25.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ trytond.spec ++++++
--- /var/tmp/diff_new_pack.rQQRR0/_old  2020-08-21 19:19:43.576901845 +0200
+++ /var/tmp/diff_new_pack.rQQRR0/_new  2020-08-21 19:19:43.576901845 +0200
@@ -20,7 +20,7 @@
 %define majorver 5.0
 %define base_name tryton
 Name:           trytond
-Version:        %{majorver}.24
+Version:        %{majorver}.25
 Release:        0
 Summary:        An Enterprise Resource Planning (ERP) system
 License:        GPL-3.0-or-later

++++++ trytond-5.0.24.tar.gz -> trytond-5.0.25.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-5.0.24/.hgtags new/trytond-5.0.25/.hgtags
--- old/trytond-5.0.24/.hgtags  2020-07-16 19:05:21.000000000 +0200
+++ new/trytond-5.0.25/.hgtags  2020-08-02 17:27:40.000000000 +0200
@@ -43,3 +43,4 @@
 d676f08167788f1da30fa57b4eecdca7b491fb49 5.0.22
 b48137b41f5094dd1c8e00fed36e495b6be79d23 5.0.23
 00b369c2f3d202d42200528bc555d7c44d7a864c 5.0.24
+142a2b9978232f3cb07b3dee74005b310dd64af0 5.0.25
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-5.0.24/CHANGELOG new/trytond-5.0.25/CHANGELOG
--- old/trytond-5.0.24/CHANGELOG        2020-07-16 19:05:20.000000000 +0200
+++ new/trytond-5.0.25/CHANGELOG        2020-08-02 17:27:39.000000000 +0200
@@ -1,3 +1,6 @@
+Version 5.0.25 - 2020-08-02
+* Bug fixes (see mercurial logs for details)
+
 Version 5.0.24 - 2020-07-16
 * Bug fixes (see mercurial logs for details)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-5.0.24/PKG-INFO new/trytond-5.0.25/PKG-INFO
--- old/trytond-5.0.24/PKG-INFO 2020-07-16 19:05:22.000000000 +0200
+++ new/trytond-5.0.25/PKG-INFO 2020-08-02 17:27:42.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: trytond
-Version: 5.0.24
+Version: 5.0.25
 Summary: Tryton server
 Home-page: http://www.tryton.org/
 Author: Tryton
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-5.0.24/trytond/__init__.py 
new/trytond-5.0.25/trytond/__init__.py
--- old/trytond-5.0.24/trytond/__init__.py      2020-05-18 22:48:08.000000000 
+0200
+++ new/trytond-5.0.25/trytond/__init__.py      2020-07-16 19:05:35.000000000 
+0200
@@ -5,7 +5,7 @@
 import warnings
 from email import charset
 
-__version__ = "5.0.24"
+__version__ = "5.0.25"
 
 os.environ['TZ'] = 'UTC'
 if hasattr(time, 'tzset'):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/trytond-5.0.24/trytond/backend/postgresql/database.py 
new/trytond-5.0.25/trytond/backend/postgresql/database.py
--- old/trytond-5.0.24/trytond/backend/postgresql/database.py   2019-11-15 
23:08:37.000000000 +0100
+++ new/trytond-5.0.25/trytond/backend/postgresql/database.py   2020-07-30 
00:04:12.000000000 +0200
@@ -160,11 +160,17 @@
                     time.sleep(1)
                     continue
                 raise
+        # We do not use set_session because psycopg2 < 2.7 and psycopg2cffi
+        # change the default_transaction_* attributes which breaks external
+        # pooling at the transaction level.
         if autocommit:
             conn.set_isolation_level(ISOLATION_LEVEL_AUTOCOMMIT)
         else:
             conn.set_isolation_level(ISOLATION_LEVEL_REPEATABLE_READ)
-        if readonly:
+        # psycopg2cffi does not have the readonly property
+        if hasattr(conn, 'readonly'):
+            conn.readonly = readonly
+        elif not autocommit:
             cursor = conn.cursor()
             cursor.execute('SET TRANSACTION READ ONLY')
         return conn
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-5.0.24/trytond/model/modelstorage.py 
new/trytond-5.0.25/trytond/model/modelstorage.py
--- old/trytond-5.0.24/trytond/model/modelstorage.py    2020-04-17 
14:50:06.000000000 +0200
+++ new/trytond-5.0.25/trytond/model/modelstorage.py    2020-07-21 
13:06:20.000000000 +0200
@@ -1339,9 +1339,10 @@
         # add datetime_field
         for field in list(ffields.values()):
             if hasattr(field, 'datetime_field') and field.datetime_field:
-                datetime_field = self._fields[field.datetime_field]
-                ffields[field.datetime_field] = datetime_field
                 require_context_field = True
+                if field.datetime_field not in ffields:
+                    datetime_field = self._fields[field.datetime_field]
+                    ffields[field.datetime_field] = datetime_field
 
         # add depends of field with context
         for field in list(ffields.values()):
@@ -1350,9 +1351,9 @@
                 for context_field_name in eval_fields:
                     if context_field_name not in field.depends:
                         continue
-                    context_field = self._fields.get(context_field_name)
                     require_context_field = True
-                    if context_field not in ffields:
+                    if context_field_name not in ffields:
+                        context_field = self._fields.get(context_field_name)
                         ffields[context_field_name] = context_field
 
         def filter_(id_):
@@ -1440,6 +1441,7 @@
                 read_data = self.read(list(ids), list(ffields.keys()))
             # create browse records for 'remote' models
             for data in read_data:
+                to_delete = set()
                 for fname, field in ffields.items():
                     fvalue = data[fname]
                     if field._type in ('many2one', 'one2one', 'one2many',
@@ -1458,10 +1460,11 @@
                             or field.context
                             or getattr(field, 'datetime_field', None)
                             or isinstance(field, fields.Function)):
-                        del data[fname]
+                        to_delete.add(fname)
                 if data['id'] not in self._cache:
                     self._cache[data['id']] = {}
-                self._cache[data['id']].update(data)
+                self._cache[data['id']].update(
+                    **{k: v for k, v in data.items() if k not in to_delete})
         return value
 
     @property
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-5.0.24/trytond.egg-info/PKG-INFO 
new/trytond-5.0.25/trytond.egg-info/PKG-INFO
--- old/trytond-5.0.24/trytond.egg-info/PKG-INFO        2020-07-16 
19:05:22.000000000 +0200
+++ new/trytond-5.0.25/trytond.egg-info/PKG-INFO        2020-08-02 
17:27:41.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: trytond
-Version: 5.0.24
+Version: 5.0.25
 Summary: Tryton server
 Home-page: http://www.tryton.org/
 Author: Tryton


Reply via email to