Hello community,

here is the log from the commit of package trytond for openSUSE:Factory checked 
in at 2018-08-12 20:55:57
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/trytond (Old)
 and      /work/SRC/openSUSE:Factory/.trytond.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "trytond"

Sun Aug 12 20:55:57 2018 rev:22 rq:628730 version:4.2.14

Changes:
--------
--- /work/SRC/openSUSE:Factory/trytond/trytond.changes  2018-07-21 
10:25:15.226956997 +0200
+++ /work/SRC/openSUSE:Factory/.trytond.new/trytond.changes     2018-08-12 
20:56:01.389546514 +0200
@@ -1,0 +2,5 @@
+Sat Aug  4 07:28:52 UTC 2018 - axel.br...@gmx.de
+
+- Version 4.2.14 - Bugfix Release
+
+-------------------------------------------------------------------

Old:
----
  trytond-4.2.13.tar.gz

New:
----
  trytond-4.2.14.tar.gz

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

Other differences:
------------------
++++++ trytond.spec ++++++
--- /var/tmp/diff_new_pack.LckcqO/_old  2018-08-12 20:56:03.221550237 +0200
+++ /var/tmp/diff_new_pack.LckcqO/_new  2018-08-12 20:56:03.225550245 +0200
@@ -20,7 +20,7 @@
 %define majorver 4.2
 %define base_name tryton
 Name:           trytond
-Version:        %{majorver}.13
+Version:        %{majorver}.14
 Release:        0
 
 Summary:        An Enterprise Resource Planning (ERP) system

++++++ trytond-4.2.13.tar.gz -> trytond-4.2.14.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-4.2.13/.hgtags new/trytond-4.2.14/.hgtags
--- old/trytond-4.2.13/.hgtags  2018-07-05 11:33:50.000000000 +0200
+++ new/trytond-4.2.14/.hgtags  2018-08-03 16:28:32.000000000 +0200
@@ -28,3 +28,4 @@
 0da6fb844986da58c8fff6eacd54ee8ba0708cf7 4.2.11
 c2fa5cf885b7e4af05c338bc4ccfdb2f59e5c0a4 4.2.12
 197e594bd737b72af1ea4ceb33d615d4eaadce9d 4.2.13
+d06744ca57c2255f1c04e1e16e417c7dc2ce29e8 4.2.14
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-4.2.13/CHANGELOG new/trytond-4.2.14/CHANGELOG
--- old/trytond-4.2.13/CHANGELOG        2018-07-05 11:33:49.000000000 +0200
+++ new/trytond-4.2.14/CHANGELOG        2018-08-03 16:28:31.000000000 +0200
@@ -1,3 +1,6 @@
+Version 4.2.14 - 2018-08-03
+* Bug fixes (see mercurial logs for details)
+
 Version 4.2.13 - 2018-07-05
 * Bug fixes (see mercurial logs for details)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-4.2.13/PKG-INFO new/trytond-4.2.14/PKG-INFO
--- old/trytond-4.2.13/PKG-INFO 2018-07-05 11:33:51.000000000 +0200
+++ new/trytond-4.2.14/PKG-INFO 2018-08-03 16:28:32.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: trytond
-Version: 4.2.13
+Version: 4.2.14
 Summary: Tryton server
 Home-page: http://www.tryton.org/
 Author: Tryton
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-4.2.13/doc/ref/models/models.rst 
new/trytond-4.2.14/doc/ref/models/models.rst
--- old/trytond-4.2.13/doc/ref/models/models.rst        2018-07-05 
11:33:47.000000000 +0200
+++ new/trytond-4.2.14/doc/ref/models/models.rst        2018-07-26 
00:10:58.000000000 +0200
@@ -418,6 +418,10 @@
 
     Return a SQL Table instance for the Model.
 
+.. classmethod:: ModelSQL.__table_history__()
+
+    Return a SQL Table instance for the history of Model.
+
 .. classmethod:: ModelSQL.table_query()
 
     Could be overrided to use a custom SQL query instead of a table of the
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-4.2.13/trytond/__init__.py 
new/trytond-4.2.14/trytond/__init__.py
--- old/trytond-4.2.13/trytond/__init__.py      2018-06-11 10:13:12.000000000 
+0200
+++ new/trytond-4.2.14/trytond/__init__.py      2018-07-18 19:56:46.000000000 
+0200
@@ -5,7 +5,7 @@
 import logging
 from email import charset
 
-__version__ = "4.2.13"
+__version__ = "4.2.14"
 logger = logging.getLogger(__name__)
 
 os.environ['TZ'] = 'UTC'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-4.2.13/trytond/model/modelstorage.py 
new/trytond-4.2.14/trytond/model/modelstorage.py
--- old/trytond-4.2.13/trytond/model/modelstorage.py    2018-07-05 
11:33:47.000000000 +0200
+++ new/trytond-4.2.14/trytond/model/modelstorage.py    2018-07-18 
20:15:13.000000000 +0200
@@ -976,10 +976,12 @@
             if relations:
                 for sub_relations in grouped_slice(relations):
                     sub_relations = set(sub_relations)
-                    finds = Relation.search(['AND',
-                            [('id', 'in', [r.id for r in sub_relations])],
-                            domain,
-                            ])
+                    # Use root user to skip access rules
+                    with Transaction().set_user(0):
+                        finds = Relation.search(['AND',
+                                [('id', 'in', [r.id for r in sub_relations])],
+                                domain,
+                                ])
                     if sub_relations != set(finds):
                         cls.raise_user_error('domain_validation_record',
                             error_args=cls._get_error_args(field.name))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-4.2.13/trytond/model/modelview.py 
new/trytond-4.2.14/trytond/model/modelview.py
--- old/trytond-4.2.13/trytond/model/modelview.py       2017-12-04 
23:58:17.000000000 +0100
+++ new/trytond-4.2.14/trytond/model/modelview.py       2018-07-26 
00:10:58.000000000 +0200
@@ -399,18 +399,22 @@
         # Find field without read access
         fread_accesses = FieldAccess.check(cls.__name__,
                 cls._fields.keys(), 'read', access=True)
-        fields_to_remove = list(x for x, y in fread_accesses.iteritems()
-                if not y)
+        fields_to_remove = set(
+            x for x, y in fread_accesses.items() if not y)
 
         # Find relation field without read access
         for name, field in cls._fields.iteritems():
             if not ModelAccess.check_relation(cls.__name__, name, mode='read'):
-                fields_to_remove.append(name)
+                fields_to_remove.add(name)
 
-        for name, field in cls._fields.iteritems():
-            for field_to_remove in fields_to_remove:
-                if field_to_remove in field.depends:
-                    fields_to_remove.append(name)
+        checked = set()
+        while checked < fields_to_remove:
+            to_check = fields_to_remove - checked
+            for name, field in cls._fields.items():
+                for field_to_remove in to_check:
+                    if field_to_remove in field.depends:
+                        fields_to_remove.add(name)
+            checked |= to_check
 
         # Remove field without read access
         for field in fields_to_remove:
@@ -462,7 +466,11 @@
 
         arch = etree.tostring(
             tree, encoding='utf-8', pretty_print=False).decode('utf-8')
-        fields2 = cls.fields_get(fields_def.keys())
+        # Do not call fields_def without fields as it returns all fields
+        if fields_def:
+            fields2 = cls.fields_get(list(fields_def.keys()))
+        else:
+            fields2 = {}
         for field in fields_def:
             if field in fields2:
                 fields2[field].update(fields_def[field])
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-4.2.13/trytond/protocols/wrappers.py 
new/trytond-4.2.14/trytond/protocols/wrappers.py
--- old/trytond-4.2.13/trytond/protocols/wrappers.py    2017-08-08 
18:17:33.000000000 +0200
+++ new/trytond-4.2.14/trytond/protocols/wrappers.py    2018-07-18 
20:15:13.000000000 +0200
@@ -160,7 +160,7 @@
             if auth_type != b'bearer':
                 abort(403)
 
-            application = UserApplication.check(auth_info, name)
+            application = UserApplication.check(bytes_to_wsgi(auth_info), name)
             if not application:
                 abort(403)
             transaction = Transaction()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-4.2.13/trytond.egg-info/PKG-INFO 
new/trytond-4.2.14/trytond.egg-info/PKG-INFO
--- old/trytond-4.2.13/trytond.egg-info/PKG-INFO        2018-07-05 
11:33:50.000000000 +0200
+++ new/trytond-4.2.14/trytond.egg-info/PKG-INFO        2018-08-03 
16:28:32.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: trytond
-Version: 4.2.13
+Version: 4.2.14
 Summary: Tryton server
 Home-page: http://www.tryton.org/
 Author: Tryton


Reply via email to