Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package trytond_account for openSUSE:Factory
checked in at 2022-02-09 20:39:31
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/trytond_account (Old)
and /work/SRC/openSUSE:Factory/.trytond_account.new.1898 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "trytond_account"
Wed Feb 9 20:39:31 2022 rev:30 rq:952806 version:5.0.21
Changes:
--------
--- /work/SRC/openSUSE:Factory/trytond_account/trytond_account.changes
2022-01-10 23:54:16.812839936 +0100
+++
/work/SRC/openSUSE:Factory/.trytond_account.new.1898/trytond_account.changes
2022-02-09 20:40:45.374599312 +0100
@@ -1,0 +2,5 @@
+Tue Feb 1 19:22:46 UTC 2022 - Axel Braun <[email protected]>
+
+- Version 5.0.21 - Bugfix Release
+
+-------------------------------------------------------------------
Old:
----
trytond_account-5.0.20.tar.gz
trytond_account-5.0.20.tar.gz.asc
New:
----
trytond_account-5.0.21.tar.gz
trytond_account-5.0.21.tar.gz.asc
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ trytond_account.spec ++++++
--- /var/tmp/diff_new_pack.0bwImI/_old 2022-02-09 20:40:46.002600814 +0100
+++ /var/tmp/diff_new_pack.0bwImI/_new 2022-02-09 20:40:46.006600823 +0100
@@ -18,7 +18,7 @@
%define majorver 5.0
Name: trytond_account
-Version: %{majorver}.20
+Version: %{majorver}.21
Release: 0
Summary: The "account" module for the Tryton ERP system
License: GPL-3.0+
++++++ trytond_account-5.0.20.tar.gz -> trytond_account-5.0.21.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/trytond_account-5.0.20/.hgtags
new/trytond_account-5.0.21/.hgtags
--- old/trytond_account-5.0.20/.hgtags 2022-01-01 18:51:25.000000000 +0100
+++ new/trytond_account-5.0.21/.hgtags 2022-02-01 18:32:37.000000000 +0100
@@ -39,3 +39,4 @@
fa0e8af653621c155163807ce40d8eb4340a95e5 5.0.18
0e3d6055b0fab40f58093ffc0946d9f986b8721e 5.0.19
c49460bc44ab9165338f80c4794dc071aed18557 5.0.20
+175dbae7ef397eee6e9ca65da3ddc7946ee4e081 5.0.21
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/trytond_account-5.0.20/CHANGELOG
new/trytond_account-5.0.21/CHANGELOG
--- old/trytond_account-5.0.20/CHANGELOG 2022-01-01 18:51:24.000000000
+0100
+++ new/trytond_account-5.0.21/CHANGELOG 2022-02-01 18:32:37.000000000
+0100
@@ -1,3 +1,6 @@
+Version 5.0.21 - 2022-02-01
+* Bug fixes (see mercurial logs for details)
+
Version 5.0.20 - 2022-01-01
* Bug fixes (see mercurial logs for details)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/trytond_account-5.0.20/PKG-INFO
new/trytond_account-5.0.21/PKG-INFO
--- old/trytond_account-5.0.20/PKG-INFO 2022-01-01 18:51:26.953218200 +0100
+++ new/trytond_account-5.0.21/PKG-INFO 2022-02-01 18:32:39.104630700 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.2
Name: trytond_account
-Version: 5.0.20
+Version: 5.0.21
Summary: Tryton module for accounting
Home-page: http://www.tryton.org/
Author: Tryton
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/trytond_account-5.0.20/account.py
new/trytond_account-5.0.21/account.py
--- old/trytond_account-5.0.20/account.py 2021-12-28 01:28:18.000000000
+0100
+++ new/trytond_account-5.0.21/account.py 2022-01-22 21:13:43.000000000
+0100
@@ -1440,15 +1440,28 @@
return [('id', 'in', ids)]
@classmethod
+ def _debit_credit_context(cls):
+ period_ids, from_date, to_date = None, None, None
+ context = Transaction().context
+ if context.get('start_period') or context.get('end_period'):
+ start_period_ids = set(cls.get_period_ids('start_balance'))
+ end_period_ids = set(cls.get_period_ids('end_balance'))
+ period_ids = list(end_period_ids.difference(start_period_ids))
+ elif context.get('from_date') or context.get('end_date'):
+ _, from_date = cls.get_dates('start_balance')
+ _, to_date = cls.get_dates('end_balance')
+ return {
+ 'periods': period_ids,
+ 'from_date': from_date,
+ 'to_date': to_date,
+ }
+
+ @classmethod
def get_debit_credit(cls, records, name):
pool = Pool()
Account = pool.get('account.account')
- start_period_ids = cls.get_period_ids('start_%s' % name)
- end_period_ids = cls.get_period_ids('end_%s' % name)
- periods_ids = list(
- set(end_period_ids).difference(set(start_period_ids)))
- with Transaction().set_context(periods=periods_ids):
+ with Transaction().set_context(cls._debit_credit_context()):
accounts = Account.browse(records)
return {a.id: getattr(a, name) for a in accounts}
@@ -1457,11 +1470,7 @@
pool = Pool()
Account = pool.get('account.account')
- start_period_ids = cls.get_period_ids('start_%s' % name)
- end_period_ids = cls.get_period_ids('end_%s' % name)
- periods_ids = list(
- set(end_period_ids).difference(set(start_period_ids)))
- with Transaction().set_context(periods=periods_ids):
+ with Transaction().set_context(cls._debit_credit_context()):
accounts = Account.search([], order=[])
_, operator_, operand = domain
@@ -1677,10 +1686,7 @@
else:
column = Column(line, fname).as_(fname)
columns.append(column)
- start_period_ids = set(LedgerAccount.get_period_ids('start_balance'))
- end_period_ids = set(LedgerAccount.get_period_ids('end_balance'))
- period_ids = list(end_period_ids.difference(start_period_ids))
- with Transaction().set_context(periods=period_ids):
+ with Transaction().set_context(LedgerAccount._debit_credit_context()):
line_query, fiscalyear_ids = Line.query_get(line)
return line.join(move, condition=line.move == move.id
).join(account, condition=line.account == account.id
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/trytond_account-5.0.20/period.py
new/trytond_account-5.0.21/period.py
--- old/trytond_account-5.0.20/period.py 2019-11-15 22:44:58.000000000
+0100
+++ new/trytond_account-5.0.21/period.py 2022-01-22 21:13:43.000000000
+0100
@@ -307,8 +307,9 @@
database = transaction.database
connection = transaction.connection
- # Lock period to be sure no new period will be created in between.
+ # Lock period and move to be sure no new record will be created
database.lock(connection, JournalPeriod._table)
+ database.lock(connection, Move._table)
unposted_moves = Move.search([
('period', 'in', [p.id for p in periods]),
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/trytond_account-5.0.20/tryton.cfg
new/trytond_account-5.0.21/tryton.cfg
--- old/trytond_account-5.0.20/tryton.cfg 2021-11-05 00:21:00.000000000
+0100
+++ new/trytond_account-5.0.21/tryton.cfg 2022-01-01 18:51:36.000000000
+0100
@@ -1,5 +1,5 @@
[tryton]
-version=5.0.20
+version=5.0.21
depends:
company
currency
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/trytond_account-5.0.20/trytond_account.egg-info/PKG-INFO
new/trytond_account-5.0.21/trytond_account.egg-info/PKG-INFO
--- old/trytond_account-5.0.20/trytond_account.egg-info/PKG-INFO
2022-01-01 18:51:26.000000000 +0100
+++ new/trytond_account-5.0.21/trytond_account.egg-info/PKG-INFO
2022-02-01 18:32:38.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.2
Name: trytond-account
-Version: 5.0.20
+Version: 5.0.21
Summary: Tryton module for accounting
Home-page: http://www.tryton.org/
Author: Tryton