Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package trytond for openSUSE:Factory checked 
in at 2021-05-18 18:27:31
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/trytond (Old)
 and      /work/SRC/openSUSE:Factory/.trytond.new.2988 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "trytond"

Tue May 18 18:27:31 2021 rev:60 rq:894083 version:5.0.35

Changes:
--------
--- /work/SRC/openSUSE:Factory/trytond/trytond.changes  2021-05-04 
22:01:11.696554275 +0200
+++ /work/SRC/openSUSE:Factory/.trytond.new.2988/trytond.changes        
2021-05-18 18:27:58.670563136 +0200
@@ -1,0 +2,5 @@
+Sun May 16 09:23:29 UTC 2021 - Axel Braun <[email protected]>
+
+- Version 5.0.35 - Bugfix Release
+
+-------------------------------------------------------------------

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

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

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

Other differences:
------------------
++++++ trytond.spec ++++++
--- /var/tmp/diff_new_pack.p9gXPv/_old  2021-05-18 18:27:59.294560431 +0200
+++ /var/tmp/diff_new_pack.p9gXPv/_new  2021-05-18 18:27:59.298560414 +0200
@@ -20,7 +20,7 @@
 %define majorver 5.0
 %define base_name tryton
 Name:           trytond
-Version:        %{majorver}.34
+Version:        %{majorver}.35
 Release:        0
 Summary:        An Enterprise Resource Planning (ERP) system
 License:        GPL-3.0-or-later

++++++ trytond-5.0.34.tar.gz -> trytond-5.0.35.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-5.0.34/.hgtags new/trytond-5.0.35/.hgtags
--- old/trytond-5.0.34/.hgtags  2021-04-02 21:53:28.000000000 +0200
+++ new/trytond-5.0.35/.hgtags  2021-05-15 22:39:38.000000000 +0200
@@ -53,3 +53,4 @@
 c485f522f9aa8c544e0857795c540c1b95c0407e 5.0.32
 268cdae7d36eb3730bc9b722518fa26bd778cdf3 5.0.33
 91c52f70ccb84ffdd122b29888828a74aac04a83 5.0.34
+fd34ad4f8fb3b09318a293dda21dfba2ce2c3fbc 5.0.35
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-5.0.34/CHANGELOG new/trytond-5.0.35/CHANGELOG
--- old/trytond-5.0.34/CHANGELOG        2021-04-02 21:53:27.000000000 +0200
+++ new/trytond-5.0.35/CHANGELOG        2021-05-15 22:39:37.000000000 +0200
@@ -1,3 +1,6 @@
+Version 5.0.35 - 2021-05-15
+* Bug fixes (see mercurial logs for details)
+
 Version 5.0.34 - 2021-04-02
 * Bug fixes (see mercurial logs for details)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-5.0.34/PKG-INFO new/trytond-5.0.35/PKG-INFO
--- old/trytond-5.0.34/PKG-INFO 2021-04-02 21:53:30.106638700 +0200
+++ new/trytond-5.0.35/PKG-INFO 2021-05-15 22:39:40.180083500 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: trytond
-Version: 5.0.34
+Version: 5.0.35
 Summary: Tryton server
 Home-page: http://www.tryton.org/
 Author: Tryton
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-5.0.34/trytond/__init__.py 
new/trytond-5.0.35/trytond/__init__.py
--- old/trytond-5.0.34/trytond/__init__.py      2021-02-12 10:14:59.000000000 
+0100
+++ new/trytond-5.0.35/trytond/__init__.py      2021-04-02 21:53:44.000000000 
+0200
@@ -5,7 +5,7 @@
 import warnings
 from email import charset
 
-__version__ = "5.0.34"
+__version__ = "5.0.35"
 
 os.environ['TZ'] = 'UTC'
 if hasattr(time, 'tzset'):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-5.0.34/trytond/cache.py 
new/trytond-5.0.35/trytond/cache.py
--- old/trytond-5.0.34/trytond/cache.py 2021-03-16 00:44:19.000000000 +0100
+++ new/trytond-5.0.35/trytond/cache.py 2021-05-06 23:57:20.000000000 +0200
@@ -35,8 +35,9 @@
 
     def _key(self, key):
         if self.context:
-            context = Transaction().context
+            context = Transaction().context.copy()
             context.pop('client', None)
+            context.pop('_request', None)
             return (key, Transaction().user, freeze(context))
         return key
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-5.0.34/trytond/model/fields/many2many.py 
new/trytond-5.0.35/trytond/model/fields/many2many.py
--- old/trytond-5.0.34/trytond/model/fields/many2many.py        2019-08-11 
19:34:43.000000000 +0200
+++ new/trytond-5.0.35/trytond/model/fields/many2many.py        2021-05-06 
23:57:20.000000000 +0200
@@ -436,4 +436,7 @@
             relation_domain, tables=relation_tables)
         query_table = convert_from(None, relation_tables)
         query = query_table.select(origin, where=expression)
-        return table.id.in_(query)
+        expression = table.id.in_(query)
+        if operator.startswith('!') or operator.startswith('not '):
+            expression |= ~table.id.in_(relation.select(origin))
+        return expression
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-5.0.34/trytond/model/fields/one2many.py 
new/trytond-5.0.35/trytond/model/fields/one2many.py
--- old/trytond-5.0.34/trytond/model/fields/one2many.py 2019-08-11 
19:34:43.000000000 +0200
+++ new/trytond-5.0.35/trytond/model/fields/one2many.py 2021-05-06 
23:57:20.000000000 +0200
@@ -326,4 +326,6 @@
 
         if operator == 'not where':
             expression = ~expression
+        elif operator.startswith('!') or operator.startswith('not '):
+            expression |= ~table.id.in_(target.select(origin))
         return expression
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-5.0.34/trytond/tests/test_field_many2many.py 
new/trytond-5.0.35/trytond/tests/test_field_many2many.py
--- old/trytond-5.0.34/trytond/tests/test_field_many2many.py    2019-08-11 
19:34:43.000000000 +0200
+++ new/trytond-5.0.35/trytond/tests/test_field_many2many.py    2021-05-06 
23:57:20.000000000 +0200
@@ -39,6 +39,21 @@
         self.assertListEqual(many2manys, [many2many])
 
     @with_transaction()
+    def test_search_equals_no_link(self):
+        "Test search many2many equals without link"
+        Many2Many = self.Many2Many()
+        many2many, no_link = Many2Many.create([{
+                    'targets': [('create', [{'name': "Target"}])],
+                    }, {
+                    }])
+
+        many2manys = Many2Many.search([
+                ('targets', '=', "Target"),
+                ])
+
+        self.assertListEqual(many2manys, [many2many])
+
+    @with_transaction()
     def test_search_non_equals(self):
         "Test search many2many non equals"
         Many2Many = self.Many2Many()
@@ -85,6 +100,21 @@
         self.assertListEqual(many2manys, [many2many1])
 
     @with_transaction()
+    def test_search_non_equals_no_link(self):
+        "Test search many2many non equals without link"
+        Many2Many = self.Many2Many()
+        many2many, no_link = Many2Many.create([{
+                    'targets': [('create', [{'name': "Target"}])],
+                    }, {
+                    }])
+
+        many2manys = Many2Many.search([
+                ('targets', '!=', "Target"),
+                ])
+
+        self.assertListEqual(many2manys, [no_link])
+
+    @with_transaction()
     def test_search_in(self):
         "Test search many2many in"
         Many2Many = self.Many2Many()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-5.0.34/trytond/tests/test_field_one2many.py 
new/trytond-5.0.35/trytond/tests/test_field_one2many.py
--- old/trytond-5.0.34/trytond/tests/test_field_one2many.py     2019-08-11 
19:34:43.000000000 +0200
+++ new/trytond-5.0.35/trytond/tests/test_field_one2many.py     2021-05-06 
23:57:20.000000000 +0200
@@ -39,6 +39,21 @@
         self.assertListEqual(one2manys, [one2many])
 
     @with_transaction()
+    def test_search_equals_no_link(self):
+        "Test search one2many equals without link"
+        One2Many = self.One2Many()
+        one2many, no_link = One2Many.create([{
+                    'targets': [('create', [{'name': "Target"}])],
+                    }, {
+                    }])
+
+        one2manys = One2Many.search([
+                ('targets', '=', "Target"),
+                ])
+
+        self.assertListEqual(one2manys, [one2many])
+
+    @with_transaction()
     def test_search_non_equals(self):
         "Test search one2many non equals"
         One2Many = self.One2Many()
@@ -85,6 +100,21 @@
         self.assertListEqual(one2manys, [one2many1])
 
     @with_transaction()
+    def test_search_non_equals_no_link(self):
+        "Test search one2many non equals without link"
+        One2Many = self.One2Many()
+        one2many, no_link = One2Many.create([{
+                    'targets': [('create', [{'name': "Target"}])],
+                    }, {
+                    }])
+
+        one2manys = One2Many.search([
+                ('targets', '!=', "Target"),
+                ])
+
+        self.assertListEqual(one2manys, [no_link])
+
+    @with_transaction()
     def test_search_in(self):
         "Test search one2many in"
         One2Many = self.One2Many()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-5.0.34/trytond/tests/test_tryton.py 
new/trytond-5.0.35/trytond/tests/test_tryton.py
--- old/trytond-5.0.34/trytond/tests/test_tryton.py     2019-11-15 
22:28:08.000000000 +0100
+++ new/trytond-5.0.35/trytond/tests/test_tryton.py     2021-05-15 
19:10:23.000000000 +0200
@@ -9,6 +9,7 @@
 import sys
 import time
 import unittest
+import unittest.mock
 from functools import reduce
 from functools import wraps
 from itertools import chain
@@ -673,6 +674,7 @@
 
 
 def doctest_teardown(test):
+    unittest.mock.patch.stopall()
     return drop_db()
 
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond-5.0.34/trytond.egg-info/PKG-INFO 
new/trytond-5.0.35/trytond.egg-info/PKG-INFO
--- old/trytond-5.0.34/trytond.egg-info/PKG-INFO        2021-04-02 
21:53:29.000000000 +0200
+++ new/trytond-5.0.35/trytond.egg-info/PKG-INFO        2021-05-15 
22:39:39.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: trytond
-Version: 5.0.34
+Version: 5.0.35
 Summary: Tryton server
 Home-page: http://www.tryton.org/
 Author: Tryton

Reply via email to