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-06-12 19:27:45 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/trytond_stock (Old) and /work/SRC/openSUSE:Factory/.trytond_stock.new.1981 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "trytond_stock" Fri Jun 12 19:27:45 2026 rev:51 rq:1358798 version:7.0.19 Changes: -------- --- /work/SRC/openSUSE:Factory/trytond_stock/trytond_stock.changes 2025-09-23 20:48:19.758462286 +0200 +++ /work/SRC/openSUSE:Factory/.trytond_stock.new.1981/trytond_stock.changes 2026-06-12 19:28:43.077187113 +0200 @@ -1,0 +2,5 @@ +Fri Jun 12 00:25:01 UTC 2026 - Axel Braun <[email protected]> + +- Version 7.0.19 - Bugfix Release + +------------------------------------------------------------------- Old: ---- trytond_stock-7.0.16.tar.gz New: ---- trytond_stock-7.0.19.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ trytond_stock.spec ++++++ --- /var/tmp/diff_new_pack.MByoNv/_old 2026-06-12 19:28:44.597250715 +0200 +++ /var/tmp/diff_new_pack.MByoNv/_new 2026-06-12 19:28:44.617251552 +0200 @@ -1,7 +1,7 @@ # # spec file for package trytond_stock # -# Copyright (c) 2025 SUSE LLC and contributors +# Copyright (c) 2026 SUSE LLC and contributors # Copyright (c) 2014-2024 Dr. Axel Braun # # All modifications and additions to the file contributed by third parties @@ -29,7 +29,7 @@ %define majorver 7.0 Name: trytond_stock -Version: %{majorver}.16 +Version: %{majorver}.19 Release: 0 Summary: The "stock" module for the Tryton ERP system License: GPL-3.0-only ++++++ trytond_stock-7.0.16.tar.gz -> trytond_stock-7.0.19.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond_stock-7.0.16/CHANGELOG new/trytond_stock-7.0.19/CHANGELOG --- old/trytond_stock-7.0.16/CHANGELOG 2025-09-15 18:14:36.000000000 +0200 +++ new/trytond_stock-7.0.19/CHANGELOG 2026-05-02 14:11:10.000000000 +0200 @@ -1,4 +1,19 @@ +Version 7.0.19 - 2026-05-02 +--------------------------- +* Bug fixes (see mercurial logs for details) + + +Version 7.0.18 - 2026-04-16 +--------------------------- +* Bug fixes (see mercurial logs for details) + + +Version 7.0.17 - 2026-03-18 +--------------------------- +* Bug fixes (see mercurial logs for details) + + Version 7.0.16 - 2025-09-15 --------------------------- * Bug fixes (see mercurial logs for details) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond_stock-7.0.16/COPYRIGHT new/trytond_stock-7.0.19/COPYRIGHT --- old/trytond_stock-7.0.16/COPYRIGHT 2025-09-15 18:14:36.000000000 +0200 +++ new/trytond_stock-7.0.19/COPYRIGHT 2026-05-02 14:11:10.000000000 +0200 @@ -1,7 +1,7 @@ Copyright (C) 2012 Openlabs Technologies & Consulting (P) LTD. -Copyright (C) 2008-2025 Cédric Krier. +Copyright (C) 2008-2026 Cédric Krier. Copyright (C) 2008-2013 Bertrand Chenal. -Copyright (C) 2008-2025 B2CK SPRL. +Copyright (C) 2008-2026 B2CK SPRL. Copyright (C) 2004-2008 Tiny SPRL. This program is free software: you can redistribute it and/or modify diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond_stock-7.0.16/PKG-INFO new/trytond_stock-7.0.19/PKG-INFO --- old/trytond_stock-7.0.16/PKG-INFO 2025-09-15 18:14:39.372628000 +0200 +++ new/trytond_stock-7.0.19/PKG-INFO 2026-05-02 14:11:14.383692700 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.4 Name: trytond_stock -Version: 7.0.16 +Version: 7.0.19 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.16/period.py new/trytond_stock-7.0.19/period.py --- old/trytond_stock-7.0.16/period.py 2025-09-14 09:24:03.000000000 +0200 +++ new/trytond_stock-7.0.19/period.py 2026-04-14 20:36:57.000000000 +0200 @@ -9,7 +9,7 @@ from trytond.pool import Pool from trytond.pyson import Eval from trytond.tools import grouped_slice -from trytond.transaction import Transaction +from trytond.transaction import Transaction, inactive_records from .exceptions import PeriodCloseError @@ -79,6 +79,12 @@ return str(self.date) @classmethod + def copy(cls, periods, default=None): + default = default.copy() if default is not None else {} + default.setdefault('caches') + return super().copy(periods, default=default) + + @classmethod @ModelView.button @Workflow.transition('draft') def draft(cls, periods): @@ -116,9 +122,11 @@ with connection.cursor() as cursor: cursor.execute(*query) - locations = Location.search([ - ('type', 'not in', ['warehouse', 'view']), - ], order=[]) + with inactive_records(): + locations = Location.search([ + ('type', 'not in', ['warehouse', 'view']), + ], + order=[]) for company, c_periods in groupby(periods, key=lambda p: p.company): with Transaction().set_context(company=company.id): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond_stock-7.0.16/stock_reporting_margin.py new/trytond_stock-7.0.19/stock_reporting_margin.py --- old/trytond_stock-7.0.16/stock_reporting_margin.py 2025-05-05 10:54:28.000000000 +0200 +++ new/trytond_stock-7.0.19/stock_reporting_margin.py 2026-04-30 18:46:49.000000000 +0200 @@ -482,7 +482,8 @@ # by using number one order bigger. nb_category = category.select( Power(10, (Ceil(Log(Max(category.id))) + Literal(1)))) - return Min(move.id * nb_category + template_category.id) + return cls.id.sql_cast( + Min(move.id * nb_category + template_category.id)) @classmethod def _group_by(cls, tables, withs): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond_stock-7.0.16/tryton.cfg new/trytond_stock-7.0.19/tryton.cfg --- old/trytond_stock-7.0.16/tryton.cfg 2025-09-03 20:44:52.000000000 +0200 +++ new/trytond_stock-7.0.19/tryton.cfg 2026-04-16 23:04:46.000000000 +0200 @@ -1,5 +1,5 @@ [tryton] -version=7.0.16 +version=7.0.19 depends: company currency diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond_stock-7.0.16/trytond_stock.egg-info/PKG-INFO new/trytond_stock-7.0.19/trytond_stock.egg-info/PKG-INFO --- old/trytond_stock-7.0.16/trytond_stock.egg-info/PKG-INFO 2025-09-15 18:14:38.000000000 +0200 +++ new/trytond_stock-7.0.19/trytond_stock.egg-info/PKG-INFO 2026-05-02 14:11:13.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.4 Name: trytond_stock -Version: 7.0.16 +Version: 7.0.19 Summary: Tryton module for stock and inventory Home-page: http://www.tryton.org/ Download-URL: http://downloads.tryton.org/7.0/
