Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package trytond_stock for openSUSE:Factory checked in at 2026-08-14 22:09:33 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/trytond_stock (Old) and /work/SRC/openSUSE:Factory/.trytond_stock.new.1258 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "trytond_stock" Fri Aug 14 22:09:33 2026 rev:52 rq:1371195 version:7.0.20 Changes: -------- --- /work/SRC/openSUSE:Factory/trytond_stock/trytond_stock.changes 2026-06-12 19:28:43.077187113 +0200 +++ /work/SRC/openSUSE:Factory/.trytond_stock.new.1258/trytond_stock.changes 2026-08-14 22:09:48.745137344 +0200 @@ -1,0 +2,5 @@ +Fri Aug 14 09:22:42 UTC 2026 - Axel Braun <[email protected]> + +- Version 7.0.20 - Bugfix Release + +------------------------------------------------------------------- Old: ---- trytond_stock-7.0.19.tar.gz New: ---- trytond_stock-7.0.20.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ trytond_stock.spec ++++++ --- /var/tmp/diff_new_pack.qW1sPB/_old 2026-08-14 22:09:49.625169619 +0200 +++ /var/tmp/diff_new_pack.qW1sPB/_new 2026-08-14 22:09:49.627169693 +0200 @@ -29,7 +29,7 @@ %define majorver 7.0 Name: trytond_stock -Version: %{majorver}.19 +Version: %{majorver}.20 Release: 0 Summary: The "stock" module for the Tryton ERP system License: GPL-3.0-only ++++++ trytond_stock-7.0.19.tar.gz -> trytond_stock-7.0.20.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond_stock-7.0.19/CHANGELOG new/trytond_stock-7.0.20/CHANGELOG --- old/trytond_stock-7.0.19/CHANGELOG 2026-05-02 14:11:10.000000000 +0200 +++ new/trytond_stock-7.0.20/CHANGELOG 2026-07-01 22:52:20.000000000 +0200 @@ -1,4 +1,9 @@ +Version 7.0.20 - 2026-07-01 +--------------------------- +* Bug fixes (see mercurial logs for details) + + Version 7.0.19 - 2026-05-02 --------------------------- * Bug fixes (see mercurial logs for details) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond_stock-7.0.19/PKG-INFO new/trytond_stock-7.0.20/PKG-INFO --- old/trytond_stock-7.0.19/PKG-INFO 2026-05-02 14:11:14.383692700 +0200 +++ new/trytond_stock-7.0.20/PKG-INFO 2026-07-01 22:52:24.105507000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.4 Name: trytond_stock -Version: 7.0.19 +Version: 7.0.20 Summary: Tryton module for stock and inventory Home-page: http://www.tryton.org/ Download-URL: http://downloads.tryton.org/7.0/ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond_stock-7.0.19/move.py new/trytond_stock-7.0.20/move.py --- old/trytond_stock-7.0.19/move.py 2025-09-22 21:34:39.000000000 +0200 +++ new/trytond_stock-7.0.20/move.py 2026-06-30 22:34:15.000000000 +0200 @@ -153,6 +153,12 @@ pbl = Product.products_by_location( location_ids, with_childs=with_childs, grouping=grouping) + quantities = defaultdict(float) + for key, quantity in pbl.items(): + # pbl could return None in some keys + if key[position] is not None: + quantities[key[position]] += quantity + operator_ = { '=': operator.eq, '>=': operator.ge, @@ -163,15 +169,8 @@ 'in': lambda v, l: v in l, 'not in': lambda v, l: v not in l, }.get(operator_, lambda v, l: False) - record_ids = [] - for key, quantity in pbl.items(): - if (quantity is not None and operand is not None - and operator_(quantity, operand)): - # pbl could return None in some keys - if key[position] is not None: - record_ids.append(key[position]) - - return [('id', 'in', record_ids)] + return [('id', 'in', + [k for k, v in quantities.items() if operator_(v, operand)])] class Move(Workflow, ModelSQL, ModelView): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond_stock-7.0.19/tests/test_module.py new/trytond_stock-7.0.20/tests/test_module.py --- old/trytond_stock-7.0.19/tests/test_module.py 2025-09-22 21:34:39.000000000 +0200 +++ new/trytond_stock-7.0.20/tests/test_module.py 2026-06-30 22:34:15.000000000 +0200 @@ -330,6 +330,25 @@ test_products_by_location() + with transaction.set_context( + locations=[supplier.id, customer.id, storage.id]): + for domain, found in [ + ([('quantity', '=', 0)], True), + ([('quantity', '>=', 0)], True), + ([('quantity', '>', 0)], False), + ([('quantity', '<=', 0)], True), + ([('quantity', '<', 0)], False), + ([('quantity', '!=', 0)], False), + ([('quantity', 'in', [0])], True), + ([('quantity', 'in', [1])], False), + ([('quantity', 'not in', [0])], False), + ([('quantity', 'not in', [1])], True), + ]: + with self.subTest(domain=domain): + self.assertEqual( + Product.search(domain), + [product] if found else []) + periods = [ today + relativedelta(days=-6), today + relativedelta(days=-5), diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond_stock-7.0.19/tryton.cfg new/trytond_stock-7.0.20/tryton.cfg --- old/trytond_stock-7.0.19/tryton.cfg 2026-04-16 23:04:46.000000000 +0200 +++ new/trytond_stock-7.0.20/tryton.cfg 2026-05-02 14:11:21.000000000 +0200 @@ -1,5 +1,5 @@ [tryton] -version=7.0.19 +version=7.0.20 depends: company currency diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond_stock-7.0.19/trytond_stock.egg-info/PKG-INFO new/trytond_stock-7.0.20/trytond_stock.egg-info/PKG-INFO --- old/trytond_stock-7.0.19/trytond_stock.egg-info/PKG-INFO 2026-05-02 14:11:13.000000000 +0200 +++ new/trytond_stock-7.0.20/trytond_stock.egg-info/PKG-INFO 2026-07-01 22:52:23.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.4 Name: trytond_stock -Version: 7.0.19 +Version: 7.0.20 Summary: Tryton module for stock and inventory Home-page: http://www.tryton.org/ Download-URL: http://downloads.tryton.org/7.0/
