Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package trytond for openSUSE:Factory checked 
in at 2024-02-04 19:09:48
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/trytond (Old)
 and      /work/SRC/openSUSE:Factory/.trytond.new.1815 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "trytond"

Sun Feb  4 19:09:48 2024 rev:92 rq:1143984 version:6.0.41

Changes:
--------
--- /work/SRC/openSUSE:Factory/trytond/trytond.changes  2024-01-23 
22:57:05.722501736 +0100
+++ /work/SRC/openSUSE:Factory/.trytond.new.1815/trytond.changes        
2024-02-04 19:12:19.731370225 +0100
@@ -1,0 +2,6 @@
+Sat Feb  3 19:07:31 UTC 2024 - Axel Braun <axel.br...@gmx.de>
+
+- Version 6.0.41 - Bugfix Release
+  * added provides for user and group
+
+-------------------------------------------------------------------

Old:
----
  trytond-6.0.39.tar.gz
  trytond-6.0.39.tar.gz.asc

New:
----
  trytond-6.0.41.tar.gz
  trytond-6.0.41.tar.gz.asc

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

Other differences:
------------------
++++++ trytond.spec ++++++
--- /var/tmp/diff_new_pack.dltDs3/_old  2024-02-04 19:12:20.323391559 +0100
+++ /var/tmp/diff_new_pack.dltDs3/_new  2024-02-04 19:12:20.327391703 +0100
@@ -30,7 +30,7 @@
 %endif
 
 Name:           trytond
-Version:        %{majorver}.39
+Version:        %{majorver}.41
 Release:        0
 Summary:        An Enterprise Resource Planning (ERP) system
 License:        GPL-3.0-or-later
@@ -87,6 +87,9 @@
 # Database may run on a different machine, so a hard requirement is not ideal
 Recommends:     postgresql-server
 
+Provides:       group(tryton)
+Provides:       user(tryton)
+
 BuildArch:      noarch
 %{?systemd_ordering}
 

++++++ trytond-6.0.39.tar.gz -> trytond-6.0.41.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-6.0.39/CHANGELOG new/trytond-6.0.41/CHANGELOG
--- old/trytond-6.0.39/CHANGELOG        2023-12-16 10:51:10.000000000 +0100
+++ new/trytond-6.0.41/CHANGELOG        2024-02-03 11:58:38.000000000 +0100
@@ -1,4 +1,14 @@
 
+Version 6.0.41 - 2024-02-03
+---------------------------
+* Bug fixes (see mercurial logs for details)
+
+
+Version 6.0.40 - 2024-01-15
+---------------------------
+* Bug fixes (see mercurial logs for details)
+
+
 Version 6.0.39 - 2023-12-16
 ---------------------------
 * Bug fixes (see mercurial logs for details)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-6.0.39/COPYRIGHT new/trytond-6.0.41/COPYRIGHT
--- old/trytond-6.0.39/COPYRIGHT        2023-12-16 10:51:10.000000000 +0100
+++ new/trytond-6.0.41/COPYRIGHT        2024-02-03 11:58:37.000000000 +0100
@@ -1,7 +1,7 @@
 Copyright (C) 2004-2008 Tiny SPRL.
-Copyright (C) 2007-2023 Cédric Krier.
+Copyright (C) 2007-2024 Cédric Krier.
 Copyright (C) 2007-2013 Bertrand Chenal.
-Copyright (C) 2008-2023 B2CK SPRL.
+Copyright (C) 2008-2024 B2CK SPRL.
 Copyright (C) 2011 Openlabs Technologies & Consulting (P) Ltd.
 Copyright (C) 2011-2023 Nicolas Évrard.
 Copyright (C) 2020-2023 Maxime Richez
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-6.0.39/PKG-INFO new/trytond-6.0.41/PKG-INFO
--- old/trytond-6.0.39/PKG-INFO 2023-12-16 10:51:13.427918400 +0100
+++ new/trytond-6.0.41/PKG-INFO 2024-02-03 11:58:45.407512400 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: trytond
-Version: 6.0.39
+Version: 6.0.41
 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.39/trytond/__init__.py 
new/trytond-6.0.41/trytond/__init__.py
--- old/trytond-6.0.39/trytond/__init__.py      2023-11-17 19:33:10.000000000 
+0100
+++ new/trytond-6.0.41/trytond/__init__.py      2024-01-16 00:09:16.000000000 
+0100
@@ -7,7 +7,7 @@
 
 from lxml import etree, objectify
 
-__version__ = "6.0.39"
+__version__ = "6.0.41"
 
 os.environ['TZ'] = 'UTC'
 if hasattr(time, 'tzset'):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-6.0.39/trytond/cache.py 
new/trytond-6.0.41/trytond/cache.py
--- old/trytond-6.0.39/trytond/cache.py 2023-12-10 13:51:29.000000000 +0100
+++ new/trytond-6.0.41/trytond/cache.py 2024-01-26 19:16:33.000000000 +0100
@@ -8,6 +8,7 @@
 import threading
 import time
 from collections import OrderedDict, defaultdict
+from copy import deepcopy
 from datetime import datetime
 from weakref import WeakKeyDictionary
 
@@ -175,7 +176,7 @@
                 return default
             cache[key] = (expire, result)
             self.hit += 1
-            return result
+            return deepcopy(result)
         except (KeyError, TypeError):
             self.miss += 1
             return default
@@ -188,7 +189,7 @@
         else:
             expire = None
         try:
-            cache[key] = (expire, value)
+            cache[key] = (expire, deepcopy(value))
         except TypeError:
             pass
         return value
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-6.0.39/trytond/ir/action.py 
new/trytond-6.0.41/trytond/ir/action.py
--- old/trytond-6.0.39/trytond/ir/action.py     2023-05-17 23:03:30.000000000 
+0200
+++ new/trytond-6.0.41/trytond/ir/action.py     2024-01-08 11:56:54.000000000 
+0100
@@ -244,7 +244,7 @@
         if keywords is not None:
             return keywords
         keywords = []
-        model, model_id = value
+        model, record_id = value
 
         clause = [
             ('keyword', '=', keyword),
@@ -253,12 +253,12 @@
                 ('model', '=', None),
                 ],
             ]
-        if model_id >= 0:
+        if record_id is not None and record_id >= 0:
             clause = ['OR',
                 clause,
                 [
                     ('keyword', '=', keyword),
-                    ('model', '=', model + ',' + str(model_id)),
+                    ('model', '=', model + ',' + str(record_id)),
                     ],
                 ]
         clause = [clause, ('action.active', '=', True)]
@@ -271,8 +271,9 @@
             for value in Action.get_action_values(type_, action_ids):
                 value['keyword'] = keyword
                 keywords.append(value)
-        if keyword == 'tree_open' and model == Menu.__name__:
-            menu = Menu(model_id)
+        if (record_id is not None
+                and keyword == 'tree_open' and model == Menu.__name__):
+            menu = Menu(record_id)
             for value in keywords:
                 if value['type'] == 'ir.action.act_window':
                     if len(keywords) == 1:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-6.0.39/trytond/ir/routes.py 
new/trytond-6.0.41/trytond/ir/routes.py
--- old/trytond-6.0.39/trytond/ir/routes.py     2023-05-17 23:03:30.000000000 
+0200
+++ new/trytond-6.0.41/trytond/ir/routes.py     2024-01-08 11:55:56.000000000 
+0100
@@ -259,7 +259,7 @@
 
         try:
             if domain and isinstance(domain[0], (int, float)):
-                rows = Model.export_data(domain, fields_names)
+                rows = Model.export_data(Model.browse(domain), fields_names)
             else:
                 rows = Model.export_data_domain(
                     domain, fields_names,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-6.0.39/trytond/model/modelsql.py 
new/trytond-6.0.41/trytond/model/modelsql.py
--- old/trytond-6.0.39/trytond/model/modelsql.py        2023-12-10 
13:39:54.000000000 +0100
+++ new/trytond-6.0.41/trytond/model/modelsql.py        2024-01-26 
19:03:24.000000000 +0100
@@ -1251,7 +1251,7 @@
             model = cls.__name__
             if Model:
                 model = Model.get_name(cls.__name__)
-            ids = ', '.join(map(str, ids[:5]))
+            ids = ', '.join(map(str, wrong_ids[:5]))
             if len(wrong_ids) > 5:
                 ids += '...'
             if domain:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-6.0.39/trytond/report/report.py 
new/trytond-6.0.41/trytond/report/report.py
--- old/trytond-6.0.39/trytond/report/report.py 2023-05-17 23:03:30.000000000 
+0200
+++ new/trytond-6.0.41/trytond/report/report.py 2024-01-28 22:08:26.000000000 
+0100
@@ -324,8 +324,8 @@
             loader = relatorio.reporting.MIMETemplateLoader()
             klass = loader.factories[loader.get_type(mimetype)]
             template = klass(BytesIO(report.report_content))
-            cls._callback_loader(report, template)
             report.set_template_cached(template)
+        cls._callback_loader(report, template)
         data = template.generate(**report_context).render()
         if hasattr(data, 'getvalue'):
             data = data.getvalue()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-6.0.39/trytond/tests/test_cache.py 
new/trytond-6.0.41/trytond/tests/test_cache.py
--- old/trytond-6.0.39/trytond/tests/test_cache.py      2023-05-17 
23:03:30.000000000 +0200
+++ new/trytond-6.0.41/trytond/tests/test_cache.py      2024-01-26 
19:16:14.000000000 +0100
@@ -70,6 +70,15 @@
         self.assertEqual(cache.get('foo'), 'bar')
 
     @with_transaction()
+    def test_memory_cache_mutable(self):
+        "Test MemoryCache with mutable value"
+        value = ['bar']
+        cache.set('foo', value)
+        value.remove('bar')
+
+        self.assertEqual(cache.get('foo'), ['bar'])
+
+    @with_transaction()
     def test_memory_cache_drop(self):
         "Test MemoryCache drop"
         cache.set('foo', 'bar')
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-6.0.39/trytond.egg-info/PKG-INFO 
new/trytond-6.0.41/trytond.egg-info/PKG-INFO
--- old/trytond-6.0.39/trytond.egg-info/PKG-INFO        2023-12-16 
10:51:12.000000000 +0100
+++ new/trytond-6.0.41/trytond.egg-info/PKG-INFO        2024-02-03 
11:58:44.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: trytond
-Version: 6.0.39
+Version: 6.0.41
 Summary: Tryton server
 Home-page: http://www.tryton.org/
 Download-URL: http://downloads.tryton.org/6.0/

Reply via email to