Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package trytond for openSUSE:Factory checked in at 2023-10-10 20:58:33 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/trytond (Old) and /work/SRC/openSUSE:Factory/.trytond.new.28202 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "trytond" Tue Oct 10 20:58:33 2023 rev:86 rq:1116283 version:6.0.36 Changes: -------- --- /work/SRC/openSUSE:Factory/trytond/trytond.changes 2023-09-07 21:15:05.878360668 +0200 +++ /work/SRC/openSUSE:Factory/.trytond.new.28202/trytond.changes 2023-10-10 20:58:36.586404299 +0200 @@ -1,0 +2,5 @@ +Sun Oct 8 07:10:51 UTC 2023 - Axel Braun <axel.br...@gmx.de> + +- Version 6.0.36 - Bugfix Release + +------------------------------------------------------------------- Old: ---- trytond-6.0.35.tar.gz trytond-6.0.35.tar.gz.asc New: ---- trytond-6.0.36.tar.gz trytond-6.0.36.tar.gz.asc ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ trytond.spec ++++++ --- /var/tmp/diff_new_pack.8H2mLh/_old 2023-10-10 20:58:38.646479003 +0200 +++ /var/tmp/diff_new_pack.8H2mLh/_new 2023-10-10 20:58:38.650479148 +0200 @@ -20,7 +20,7 @@ %define majorver 6.0 %define base_name tryton Name: trytond -Version: %{majorver}.35 +Version: %{majorver}.36 Release: 0 Summary: An Enterprise Resource Planning (ERP) system License: GPL-3.0-or-later ++++++ trytond-6.0.35.tar.gz -> trytond-6.0.36.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-6.0.35/CHANGELOG new/trytond-6.0.36/CHANGELOG --- old/trytond-6.0.35/CHANGELOG 2023-09-06 22:58:39.000000000 +0200 +++ new/trytond-6.0.36/CHANGELOG 2023-10-04 23:56:28.000000000 +0200 @@ -1,4 +1,9 @@ +Version 6.0.36 - 2023-10-04 +--------------------------- +* Bug fixes (see mercurial logs for details) + + Version 6.0.35 - 2023-09-06 --------------------------- * Bug fixes (see mercurial logs for details) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-6.0.35/PKG-INFO new/trytond-6.0.36/PKG-INFO --- old/trytond-6.0.35/PKG-INFO 2023-09-06 22:58:43.411582700 +0200 +++ new/trytond-6.0.36/PKG-INFO 2023-10-04 23:56:32.492988000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: trytond -Version: 6.0.35 +Version: 6.0.36 Summary: Tryton server Home-page: http://www.tryton.org/ Download-URL: http://downloads.tryton.org/6.0/ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-6.0.35/trytond/__init__.py new/trytond-6.0.36/trytond/__init__.py --- old/trytond-6.0.35/trytond/__init__.py 2023-07-31 17:08:14.000000000 +0200 +++ new/trytond-6.0.36/trytond/__init__.py 2023-09-06 22:58:56.000000000 +0200 @@ -7,7 +7,7 @@ from lxml import etree, objectify -__version__ = "6.0.35" +__version__ = "6.0.36" os.environ['TZ'] = 'UTC' if hasattr(time, 'tzset'): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-6.0.35/trytond/ir/translation.py new/trytond-6.0.36/trytond/ir/translation.py --- old/trytond-6.0.35/trytond/ir/translation.py 2023-05-17 23:03:30.000000000 +0200 +++ new/trytond-6.0.36/trytond/ir/translation.py 2023-09-12 22:01:44.000000000 +0200 @@ -694,11 +694,9 @@ @property def unique_key(self): - if self.type in { - 'report', 'view', 'wizard_button', 'selection'}: - return (self.name, self.res_id, self.type, self.src) - elif self.type in ('field', 'model', 'help'): + if self.type == 'model': return (self.name, self.res_id, self.type) + return (self.name, self.res_id, self.type, self.src) @classmethod def from_poentry(cls, entry): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-6.0.35/trytond/model/match.py new/trytond-6.0.36/trytond/model/match.py --- old/trytond-6.0.35/trytond/model/match.py 2022-12-19 13:03:39.000000000 +0100 +++ new/trytond-6.0.36/trytond/model/match.py 2023-09-12 22:51:15.000000000 +0200 @@ -9,12 +9,16 @@ '''Match on pattern pattern is a dictionary with model field as key and matching value as value''' - for field, pattern_value in pattern.items(): - value = getattr(self, field) + for field_name, pattern_value in pattern.items(): + value = getattr(self, field_name) if not match_none and value is None: continue - if self._fields[field]._type == 'many2one': + field = self._fields[field_name] + if field._type == 'many2one': value = value.id if value else value + elif field._type == 'boolean': + value = bool(value) + pattern_value = bool(pattern_value) if value != pattern_value: return False return True diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-6.0.35/trytond/model/modelstorage.py new/trytond-6.0.36/trytond/model/modelstorage.py --- old/trytond-6.0.35/trytond/model/modelstorage.py 2023-07-22 23:17:28.000000000 +0200 +++ new/trytond-6.0.36/trytond/model/modelstorage.py 2023-09-12 22:20:02.000000000 +0200 @@ -437,7 +437,8 @@ to_write.append(id2new_records[data['id']]) to_write.append( convert_data(fields_translate, data)) - cls.write(*to_write) + if to_write: + cls.write(*to_write) return new_records @classmethod diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-6.0.35/trytond/model/modelview.py new/trytond-6.0.36/trytond/model/modelview.py --- old/trytond-6.0.35/trytond/model/modelview.py 2023-05-17 23:03:30.000000000 +0200 +++ new/trytond-6.0.36/trytond/model/modelview.py 2023-09-12 22:40:45.000000000 +0200 @@ -854,7 +854,7 @@ # Always test key presence in case value is None if (fname in init_values and value == init_values[fname] - and field._type != 'one2many'): + and field._type not in {'one2many', 'many2many'}): continue if field._type in ('many2one', 'one2one', 'reference'): if value: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-6.0.35/trytond/protocols/jsonrpc.py new/trytond-6.0.36/trytond/protocols/jsonrpc.py --- old/trytond-6.0.35/trytond/protocols/jsonrpc.py 2023-05-17 23:03:30.000000000 +0200 +++ new/trytond-6.0.36/trytond/protocols/jsonrpc.py 2023-10-01 13:29:23.000000000 +0200 @@ -126,7 +126,8 @@ try: return json.loads( self.decoded_data.decode( - self.charset, self.encoding_errors), + getattr(self, 'charset', 'utf-8'), + getattr(self, 'encoding_errors', 'replace')), object_hook=JSONDecoder()) except Exception: raise BadRequest('Unable to read JSON request') diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-6.0.35/trytond/protocols/wrappers.py new/trytond-6.0.36/trytond/protocols/wrappers.py --- old/trytond-6.0.35/trytond/protocols/wrappers.py 2023-06-10 11:51:29.000000000 +0200 +++ new/trytond-6.0.36/trytond/protocols/wrappers.py 2023-10-01 13:29:23.000000000 +0200 @@ -35,7 +35,7 @@ if self.url is None or isinstance(self.url, str): url = self.url else: - url = self.url.decode(self.url_charset) + url = self.url.decode(getattr(self, 'url_charset', 'utf-8')) auth = self.authorization if auth: args.append("%s@%s" % ( diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-6.0.35/trytond/tests/test_copy.py new/trytond-6.0.36/trytond/tests/test_copy.py --- old/trytond-6.0.35/trytond/tests/test_copy.py 2023-05-17 23:03:30.000000000 +0200 +++ new/trytond-6.0.36/trytond/tests/test_copy.py 2023-09-12 22:19:12.000000000 +0200 @@ -198,6 +198,14 @@ self.assertEqual(record_copy.file_id, record.file_id) self.assertEqual(record_copy.binary_id, record.binary_id) + @with_transaction() + def test_copy_empty(self): + "Test copy without records" + pool = Pool() + Copy = pool.get('test.copy') + + self.assertEqual(Copy.copy([]), []) + class CopyTranslationTestCase(TranslationTestCase): "Test copy translation" @@ -242,6 +250,14 @@ record_copies = Translate.browse(record_copies) self.assertEqual({r.name for r in record_copies}, {"Bar"}) + @with_transaction() + def test_copy_empty(self): + "Test copy without records" + pool = Pool() + Copy = pool.get('test.copy.translate') + + self.assertEqual(Copy.copy([]), []) + def suite(): suite_ = unittest.TestSuite() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond-6.0.35/trytond.egg-info/PKG-INFO new/trytond-6.0.36/trytond.egg-info/PKG-INFO --- old/trytond-6.0.35/trytond.egg-info/PKG-INFO 2023-09-06 22:58:42.000000000 +0200 +++ new/trytond-6.0.36/trytond.egg-info/PKG-INFO 2023-10-04 23:56:31.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: trytond -Version: 6.0.35 +Version: 6.0.36 Summary: Tryton server Home-page: http://www.tryton.org/ Download-URL: http://downloads.tryton.org/6.0/