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-04-07 23:29:21
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/trytond (Old)
 and      /work/SRC/openSUSE:Factory/.trytond.new.19717 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "trytond"

Fri Apr  7 23:29:21 2023 rev:81 rq:1077917 version:6.0.30

Changes:
--------
--- /work/SRC/openSUSE:Factory/trytond/trytond.changes  2023-03-12 
19:47:57.927509942 +0100
+++ /work/SRC/openSUSE:Factory/.trytond.new.19717/trytond.changes       
2023-04-07 23:29:22.894466697 +0200
@@ -1,0 +2,5 @@
+Fri Apr  7 20:05:05 UTC 2023 - Axel Braun <axel.br...@gmx.de>
+
+- Version 6.0.30 - Bugfix Release
+
+-------------------------------------------------------------------

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

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

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

Other differences:
------------------
++++++ trytond.spec ++++++
--- /var/tmp/diff_new_pack.tNjy1F/_old  2023-04-07 23:29:23.522469775 +0200
+++ /var/tmp/diff_new_pack.tNjy1F/_new  2023-04-07 23:29:23.526469794 +0200
@@ -20,7 +20,7 @@
 %define majorver 6.0
 %define base_name tryton
 Name:           trytond
-Version:        %{majorver}.29
+Version:        %{majorver}.30
 Release:        0
 Summary:        An Enterprise Resource Planning (ERP) system
 License:        GPL-3.0-or-later

++++++ trytond-6.0.29.tar.gz -> trytond-6.0.30.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-6.0.29/CHANGELOG new/trytond-6.0.30/CHANGELOG
--- old/trytond-6.0.29/CHANGELOG        2023-03-03 19:17:09.000000000 +0100
+++ new/trytond-6.0.30/CHANGELOG        2023-04-01 23:53:39.000000000 +0200
@@ -1,4 +1,9 @@
 
+Version 6.0.30 - 2023-04-01
+---------------------------
+* Bug fixes (see mercurial logs for details)
+
+
 Version 6.0.29 - 2023-03-03
 ---------------------------
 * Bug fixes (see mercurial logs for details)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-6.0.29/PKG-INFO new/trytond-6.0.30/PKG-INFO
--- old/trytond-6.0.29/PKG-INFO 2023-03-03 19:17:13.499534800 +0100
+++ new/trytond-6.0.30/PKG-INFO 2023-04-01 23:53:45.082338000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: trytond
-Version: 6.0.29
+Version: 6.0.30
 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.29/trytond/__init__.py 
new/trytond-6.0.30/trytond/__init__.py
--- old/trytond-6.0.29/trytond/__init__.py      2023-02-17 19:08:42.000000000 
+0100
+++ new/trytond-6.0.30/trytond/__init__.py      2023-03-03 19:17:27.000000000 
+0100
@@ -7,7 +7,7 @@
 
 from lxml import etree, objectify
 
-__version__ = "6.0.29"
+__version__ = "6.0.30"
 
 os.environ['TZ'] = 'UTC'
 if hasattr(time, 'tzset'):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-6.0.29/trytond/res/user.py 
new/trytond-6.0.30/trytond/res/user.py
--- old/trytond-6.0.29/trytond/res/user.py      2022-12-19 13:03:46.000000000 
+0100
+++ new/trytond-6.0.30/trytond/res/user.py      2023-04-01 00:42:05.000000000 
+0200
@@ -361,12 +361,30 @@
     @classmethod
     def read(cls, ids, fields_names):
         result = super(User, cls).read(ids, fields_names)
-        if not fields_names or 'password_hash' in fields_names:
-            for values in result:
+        cache = Transaction().get_cache().get(cls.__name__)
+        for values in result:
+            if 'password_hash' in values:
                 values['password_hash'] = None
+            if cache and values['id'] in cache:
+                cache[values['id']]['password_hash'] = None
         return result
 
     @classmethod
+    def search(
+            cls, domain, offset=0, limit=None, order=None, count=False,
+            query=False):
+        users = super().search(
+            domain, offset=offset, limit=limit, order=order, count=count,
+            query=query)
+        if not count and not query:
+            cache = Transaction().get_cache().get(cls.__name__)
+            if cache is not None:
+                for user in users:
+                    if user.id in cache:
+                        cache[user.id]['password_hash'] = None
+        return users
+
+    @classmethod
     def create(cls, vlist):
         vlist = [cls._convert_vals(vals) for vals in vlist]
         res = super(User, cls).create(vlist)
@@ -443,7 +461,8 @@
             default = {}
         default = default.copy()
 
-        default['password'] = ''
+        default['password_hash'] = None
+        default['password_reset'] = None
         default.setdefault('warnings')
         default.setdefault('applications')
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-6.0.29/trytond.egg-info/PKG-INFO 
new/trytond-6.0.30/trytond.egg-info/PKG-INFO
--- old/trytond-6.0.29/trytond.egg-info/PKG-INFO        2023-03-03 
19:17:12.000000000 +0100
+++ new/trytond-6.0.30/trytond.egg-info/PKG-INFO        2023-04-01 
23:53:43.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: trytond
-Version: 6.0.29
+Version: 6.0.30
 Summary: Tryton server
 Home-page: http://www.tryton.org/
 Download-URL: http://downloads.tryton.org/6.0/

Reply via email to