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-02-20 17:46:13
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/trytond (Old)
 and      /work/SRC/openSUSE:Factory/.trytond.new.22824 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "trytond"

Mon Feb 20 17:46:13 2023 rev:79 rq:1066723 version:6.0.28

Changes:
--------
--- /work/SRC/openSUSE:Factory/trytond/trytond.changes  2023-02-12 
19:14:59.101284717 +0100
+++ /work/SRC/openSUSE:Factory/.trytond.new.22824/trytond.changes       
2023-02-20 17:46:45.727739516 +0100
@@ -1,0 +2,5 @@
+Sun Feb 19 18:19:31 UTC 2023 - Axel Braun <axel.br...@gmx.de>
+
+- Version 6.0.28 - Bugfix Release
+
+-------------------------------------------------------------------

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

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

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

Other differences:
------------------
++++++ trytond.spec ++++++
--- /var/tmp/diff_new_pack.HoojNq/_old  2023-02-20 17:46:50.111764282 +0100
+++ /var/tmp/diff_new_pack.HoojNq/_new  2023-02-20 17:46:50.115764304 +0100
@@ -20,7 +20,7 @@
 %define majorver 6.0
 %define base_name tryton
 Name:           trytond
-Version:        %{majorver}.27
+Version:        %{majorver}.28
 Release:        0
 Summary:        An Enterprise Resource Planning (ERP) system
 License:        GPL-3.0-or-later

++++++ trytond-6.0.27.tar.gz -> trytond-6.0.28.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-6.0.27/CHANGELOG new/trytond-6.0.28/CHANGELOG
--- old/trytond-6.0.27/CHANGELOG        2023-02-05 21:50:14.000000000 +0100
+++ new/trytond-6.0.28/CHANGELOG        2023-02-17 19:08:24.000000000 +0100
@@ -1,3 +1,7 @@
+Version 6.0.28 - 2023-02-17
+---------------------------
+* Bug fixes (see mercurial logs for details)
+
 Version 6.0.27 - 2023-02-05
 ---------------------------
 * Bug fixes (see mercurial logs for details)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-6.0.27/PKG-INFO new/trytond-6.0.28/PKG-INFO
--- old/trytond-6.0.27/PKG-INFO 2023-02-05 21:50:18.260631600 +0100
+++ new/trytond-6.0.28/PKG-INFO 2023-02-17 19:08:29.739814000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: trytond
-Version: 6.0.27
+Version: 6.0.28
 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.27/trytond/__init__.py 
new/trytond-6.0.28/trytond/__init__.py
--- old/trytond-6.0.27/trytond/__init__.py      2023-01-15 18:34:05.000000000 
+0100
+++ new/trytond-6.0.28/trytond/__init__.py      2023-02-05 21:50:32.000000000 
+0100
@@ -7,7 +7,7 @@
 
 from lxml import etree, objectify
 
-__version__ = "6.0.27"
+__version__ = "6.0.28"
 
 os.environ['TZ'] = 'UTC'
 if hasattr(time, 'tzset'):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-6.0.27/trytond/model/modelsingleton.py 
new/trytond-6.0.28/trytond/model/modelsingleton.py
--- old/trytond-6.0.27/trytond/model/modelsingleton.py  2022-12-19 
13:03:46.000000000 +0100
+++ new/trytond-6.0.28/trytond/model/modelsingleton.py  2023-02-10 
00:23:22.000000000 +0100
@@ -58,7 +58,9 @@
         singleton = cls.get_singleton()
         if not singleton:
             singleton, = cls.create([values])
-        actions = (records, values) + args
+            actions = (records, {}) + args
+        else:
+            actions = (records, values) + args
         args = []
         for values in actions[1:None:2]:
             args.extend(([singleton], values))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-6.0.27/trytond/model/modelstorage.py 
new/trytond-6.0.28/trytond/model/modelstorage.py
--- old/trytond-6.0.27/trytond/model/modelstorage.py    2022-12-19 
13:03:46.000000000 +0100
+++ new/trytond-6.0.28/trytond/model/modelstorage.py    2023-02-14 
01:54:00.000000000 +0100
@@ -1177,9 +1177,22 @@
                                 [('id', 'in', [r.id for r in sub_relations])],
                                 domain,
                                 ])
-                    invalid_records = sub_relations - set(finds)
+                    invalid_relations = sub_relations - set(finds)
+                    if Relation == cls and field._type not in {
+                            'many2one', 'one2many', 'many2many', 'one2one',
+                            'reference'}:
+                        invalid_records = invalid_relations
+                    else:
+                        invalid_records = [
+                            r for r in records
+                            if getattr(r, field.name) in invalid_relations]
                     if invalid_records:
                         invalid_record = invalid_records.pop()
+                        if invalid_relations == invalid_records:
+                            invalid_relation = invalid_record
+                        else:
+                            invalid_relation = getattr(
+                                invalid_record, field.name)
                         domain = field.domain
                         if is_pyson(domain):
                             domain = _record_eval_pyson(records[0], domain)
@@ -1197,7 +1210,7 @@
                         else:
                             fields.add(field.name)
                         for field_name in sorted(fields):
-                            env = EvalEnvironment(invalid_record, Relation)
+                            env = EvalEnvironment(invalid_relation, Relation)
                             invalid_domain = domain_inversion(
                                 domain, field_name, env)
                             if isinstance(invalid_domain, bool):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-6.0.27/trytond.egg-info/PKG-INFO 
new/trytond-6.0.28/trytond.egg-info/PKG-INFO
--- old/trytond-6.0.27/trytond.egg-info/PKG-INFO        2023-02-05 
21:50:17.000000000 +0100
+++ new/trytond-6.0.28/trytond.egg-info/PKG-INFO        2023-02-17 
19:08:28.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: trytond
-Version: 6.0.27
+Version: 6.0.28
 Summary: Tryton server
 Home-page: http://www.tryton.org/
 Download-URL: http://downloads.tryton.org/6.0/

Reply via email to