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 2022-11-26 18:45:31
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/trytond_stock (Old)
 and      /work/SRC/openSUSE:Factory/.trytond_stock.new.1597 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "trytond_stock"

Sat Nov 26 18:45:31 2022 rev:32 rq:1038268 version:6.0.18

Changes:
--------
--- /work/SRC/openSUSE:Factory/trytond_stock/trytond_stock.changes      
2022-10-25 11:20:48.674243543 +0200
+++ /work/SRC/openSUSE:Factory/.trytond_stock.new.1597/trytond_stock.changes    
2022-11-26 18:45:35.699263224 +0100
@@ -1,0 +2,5 @@
+Fri Nov 18 19:03:39 UTC 2022 - Axel Braun <axel.br...@gmx.de>
+
+- Version 6.0.18 - Bugfix Release
+
+-------------------------------------------------------------------

Old:
----
  trytond_stock-6.0.17.tar.gz
  trytond_stock-6.0.17.tar.gz.asc

New:
----
  trytond_stock-6.0.18.tar.gz
  trytond_stock-6.0.18.tar.gz.asc

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

Other differences:
------------------
++++++ trytond_stock.spec ++++++
--- /var/tmp/diff_new_pack.quZGyH/_old  2022-11-26 18:45:36.247266472 +0100
+++ /var/tmp/diff_new_pack.quZGyH/_new  2022-11-26 18:45:36.255266520 +0100
@@ -19,7 +19,7 @@
 
 %define majorver 6.0
 Name:           trytond_stock
-Version:        %{majorver}.17
+Version:        %{majorver}.18
 Release:        0
 Summary:        The "stock" module for the Tryton ERP system
 License:        GPL-3.0-only

++++++ trytond_stock-6.0.17.tar.gz -> trytond_stock-6.0.18.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond_stock-6.0.17/.hgtags 
new/trytond_stock-6.0.18/.hgtags
--- old/trytond_stock-6.0.17/.hgtags    2022-10-17 23:54:07.000000000 +0200
+++ new/trytond_stock-6.0.18/.hgtags    2022-11-17 18:56:34.000000000 +0100
@@ -41,3 +41,4 @@
 0dd8675f2ca761e2f461cb96ba36ec5b841404b2 6.0.15
 95767dcfed28d7257ca79b81157006aa8cd78c51 6.0.16
 27b7111d95687f65648992b8c2bc09fdbc24aebe 6.0.17
+98b3979b26627af842f6552583a216346c4ece89 6.0.18
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond_stock-6.0.17/CHANGELOG 
new/trytond_stock-6.0.18/CHANGELOG
--- old/trytond_stock-6.0.17/CHANGELOG  2022-10-17 23:54:07.000000000 +0200
+++ new/trytond_stock-6.0.18/CHANGELOG  2022-11-17 18:56:33.000000000 +0100
@@ -1,3 +1,7 @@
+Version 6.0.18 - 2022-11-17
+---------------------------
+* Bug fixes (see mercurial logs for details)
+
 Version 6.0.17 - 2022-10-17
 * Bug fixes (see mercurial logs for details)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond_stock-6.0.17/PKG-INFO 
new/trytond_stock-6.0.18/PKG-INFO
--- old/trytond_stock-6.0.17/PKG-INFO   2022-10-17 23:54:09.393700000 +0200
+++ new/trytond_stock-6.0.18/PKG-INFO   2022-11-17 18:56:36.178964900 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: trytond_stock
-Version: 6.0.17
+Version: 6.0.18
 Summary: Tryton module for stock and inventory
 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_stock-6.0.17/move.py 
new/trytond_stock-6.0.18/move.py
--- old/trytond_stock-6.0.17/move.py    2022-10-12 19:42:05.000000000 +0200
+++ new/trytond_stock-6.0.18/move.py    2022-11-11 23:25:42.000000000 +0100
@@ -554,21 +554,22 @@
     @classmethod
     def check_period_closed(cls, moves):
         Period = Pool().get('stock.period')
-        for company, moves in groupby(moves, lambda m: m.company):
-            periods = Period.search([
-                    ('state', '=', 'closed'),
-                    ('company', '=', company.id),
-                    ], order=[('date', 'DESC')], limit=1)
-            if periods:
-                period, = periods
-                for move in moves:
-                    date = (move.effective_date if move.effective_date
-                        else move.planned_date)
-                    if date and date <= period.date:
-                        raise AccessError(
-                            gettext('stock.msg_move_modify_period_close',
-                                move=move.rec_name,
-                                period=period.rec_name))
+        with Transaction().set_context(_check_access=False):
+            for company, moves in groupby(moves, lambda m: m.company):
+                periods = Period.search([
+                        ('state', '=', 'closed'),
+                        ('company', '=', company.id),
+                        ], order=[('date', 'DESC')], limit=1)
+                if periods:
+                    period, = periods
+                    for move in moves:
+                        date = (move.effective_date if move.effective_date
+                            else move.planned_date)
+                        if date and date <= period.date:
+                            raise AccessError(
+                                gettext('stock.msg_move_modify_period_close',
+                                    move=move.rec_name,
+                                    period=period.rec_name))
 
     def get_rec_name(self, name):
         pool = Pool()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond_stock-6.0.17/tryton.cfg 
new/trytond_stock-6.0.18/tryton.cfg
--- old/trytond_stock-6.0.17/tryton.cfg 2022-09-06 23:34:44.000000000 +0200
+++ new/trytond_stock-6.0.18/tryton.cfg 2022-10-17 23:54:21.000000000 +0200
@@ -1,5 +1,5 @@
 [tryton]
-version=6.0.17
+version=6.0.18
 depends:
     company
     currency
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/trytond_stock-6.0.17/trytond_stock.egg-info/PKG-INFO 
new/trytond_stock-6.0.18/trytond_stock.egg-info/PKG-INFO
--- old/trytond_stock-6.0.17/trytond_stock.egg-info/PKG-INFO    2022-10-17 
23:54:08.000000000 +0200
+++ new/trytond_stock-6.0.18/trytond_stock.egg-info/PKG-INFO    2022-11-17 
18:56:35.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: trytond-stock
-Version: 6.0.17
+Version: 6.0.18
 Summary: Tryton module for stock and inventory
 Home-page: http://www.tryton.org/
 Download-URL: http://downloads.tryton.org/6.0/

Reply via email to