Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package trytond for openSUSE:Factory checked 
in at 2021-02-09 21:17:11
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/trytond (Old)
 and      /work/SRC/openSUSE:Factory/.trytond.new.28504 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "trytond"

Tue Feb  9 21:17:11 2021 rev:54 rq:870425 version:5.0.32

Changes:
--------
--- /work/SRC/openSUSE:Factory/trytond/trytond.changes  2021-02-01 
13:29:42.422243441 +0100
+++ /work/SRC/openSUSE:Factory/.trytond.new.28504/trytond.changes       
2021-02-09 21:17:12.726838472 +0100
@@ -1,0 +2,5 @@
+Tue Feb  2 08:53:34 UTC 2021 - Axel Braun <[email protected]>
+
+- Version 5.0.32 - Bugfix Release
+
+-------------------------------------------------------------------

Old:
----
  trytond-5.0.31.tar.gz

New:
----
  trytond-5.0.32.tar.gz

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

Other differences:
------------------
++++++ trytond.spec ++++++
--- /var/tmp/diff_new_pack.gKWu72/_old  2021-02-09 21:17:13.478839357 +0100
+++ /var/tmp/diff_new_pack.gKWu72/_new  2021-02-09 21:17:13.482839362 +0100
@@ -20,7 +20,7 @@
 %define majorver 5.0
 %define base_name tryton
 Name:           trytond
-Version:        %{majorver}.31
+Version:        %{majorver}.32
 Release:        0
 Summary:        An Enterprise Resource Planning (ERP) system
 License:        GPL-3.0-or-later

++++++ trytond-5.0.31.tar.gz -> trytond-5.0.32.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-5.0.31/.hgtags new/trytond-5.0.32/.hgtags
--- old/trytond-5.0.31/.hgtags  2021-01-01 16:10:33.000000000 +0100
+++ new/trytond-5.0.32/.hgtags  2021-02-01 22:50:57.000000000 +0100
@@ -50,3 +50,4 @@
 371b309731c3b9d3ba84622a652fecd27539f9dd 5.0.29
 0b23f3ed8c1c099bdf64733bafd29e873b801a5a 5.0.30
 bc3e5508144ab909a7980010ce21f9cc17be29f7 5.0.31
+c485f522f9aa8c544e0857795c540c1b95c0407e 5.0.32
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-5.0.31/CHANGELOG new/trytond-5.0.32/CHANGELOG
--- old/trytond-5.0.31/CHANGELOG        2021-01-01 16:10:32.000000000 +0100
+++ new/trytond-5.0.32/CHANGELOG        2021-02-01 22:50:56.000000000 +0100
@@ -1,3 +1,6 @@
+Version 5.0.32 - 2021-02-01
+* Bug fixes (see mercurial logs for details)
+
 Version 5.0.31 - 2021-01-01
 * Bug fixes (see mercurial logs for details)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-5.0.31/COPYRIGHT new/trytond-5.0.32/COPYRIGHT
--- old/trytond-5.0.31/COPYRIGHT        2021-01-01 16:10:32.000000000 +0100
+++ new/trytond-5.0.32/COPYRIGHT        2021-02-01 22:50:56.000000000 +0100
@@ -3,7 +3,7 @@
 Copyright (C) 2007-2013 Bertrand Chenal.
 Copyright (C) 2008-2021 B2CK SPRL.
 Copyright (C) 2011 Openlabs Technologies & Consulting (P) Ltd.
-Copyright (C) 2011-2020 Nicolas ??vrard.
+Copyright (C) 2011-2021 Nicolas ??vrard.
 
 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-5.0.31/PKG-INFO new/trytond-5.0.32/PKG-INFO
--- old/trytond-5.0.31/PKG-INFO 2021-01-01 16:10:34.802756000 +0100
+++ new/trytond-5.0.32/PKG-INFO 2021-02-01 22:50:59.296959200 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: trytond
-Version: 5.0.31
+Version: 5.0.32
 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.31/trytond/__init__.py 
new/trytond-5.0.32/trytond/__init__.py
--- old/trytond-5.0.31/trytond/__init__.py      2020-12-02 19:19:25.000000000 
+0100
+++ new/trytond-5.0.32/trytond/__init__.py      2021-01-01 16:10:47.000000000 
+0100
@@ -5,7 +5,7 @@
 import warnings
 from email import charset
 
-__version__ = "5.0.31"
+__version__ = "5.0.32"
 
 os.environ['TZ'] = 'UTC'
 if hasattr(time, 'tzset'):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-5.0.31/trytond/bus.py 
new/trytond-5.0.32/trytond/bus.py
--- old/trytond-5.0.31/trytond/bus.py   2020-11-29 17:41:36.000000000 +0100
+++ new/trytond-5.0.32/trytond/bus.py   2021-01-09 22:59:22.000000000 +0100
@@ -141,12 +141,11 @@
             raise NotImplemented
 
         logger.info("listening on channel '%s'", cls._channel)
-        conn = db.get_connection()
+        conn = db.get_connection(autocommit=True)
         pid = os.getpid()
         try:
             cursor = conn.cursor()
             cursor.execute('LISTEN "%s"' % cls._channel)
-            conn.commit()
 
             cls._messages[database] = messages = _MessageQueue(_cache_timeout)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-5.0.31/trytond/model/modelstorage.py 
new/trytond-5.0.32/trytond/model/modelstorage.py
--- old/trytond-5.0.31/trytond/model/modelstorage.py    2020-07-21 
13:06:20.000000000 +0200
+++ new/trytond-5.0.32/trytond/model/modelstorage.py    2021-01-24 
19:45:23.000000000 +0100
@@ -347,20 +347,18 @@
                 or isinstance(f, fields.MultiValue))
             and n not in mptt]
         ids = list(map(int, records))
-        datas = cls.read(ids, fields_names=fields_names)
-        datas = dict((d['id'], d) for d in datas)
+        values = {d['id']: d for d in cls.read(ids, fields_names=fields_names)}
         field_defs = cls.fields_get(fields_names=fields_names)
         to_create = []
-        for id in ids:
-            data = convert_data(field_defs, datas[id])
+        for id_ in ids:
+            data = convert_data(field_defs, values[id_])
             to_create.append(data)
         new_records = cls.create(to_create)
-        id2new_record = dict(zip(ids, new_records))
 
         fields_translate = {}
         for field_name, field in field_defs.items():
-            if field_name in cls._fields and \
-                    getattr(cls._fields[field_name], 'translate', False):
+            if (field_name in cls._fields
+                    and getattr(cls._fields[field_name], 'translate', False)):
                 fields_translate[field_name] = field
 
         if fields_translate:
@@ -368,16 +366,19 @@
                 ('translatable', '=', True),
                 ])
             if langs:
+                id2new_records = defaultdict(list)
+                for id_, new_record in zip(ids, new_records):
+                    id2new_records[id_].append(new_record)
                 fields_names = list(fields_translate.keys()) + ['id']
                 for lang in langs:
                     # Prevent fuzzing translations when copying as the terms
                     # should be the same.
                     with Transaction().set_context(language=lang.code,
                             fuzzy_translation=False):
-                        datas = cls.read(ids, fields_names=fields_names)
+                        values = cls.read(ids, fields_names=fields_names)
                         to_write = []
-                        for data in datas:
-                            to_write.append([id2new_record[data['id']]])
+                        for data in values:
+                            to_write.append(id2new_records[data['id']])
                             to_write.append(
                                 convert_data(fields_translate, data))
                         cls.write(*to_write)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-5.0.31/trytond.egg-info/PKG-INFO 
new/trytond-5.0.32/trytond.egg-info/PKG-INFO
--- old/trytond-5.0.31/trytond.egg-info/PKG-INFO        2021-01-01 
16:10:33.000000000 +0100
+++ new/trytond-5.0.32/trytond.egg-info/PKG-INFO        2021-02-01 
22:50:58.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: trytond
-Version: 5.0.31
+Version: 5.0.32
 Summary: Tryton server
 Home-page: http://www.tryton.org/
 Author: Tryton

Reply via email to