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 2021-12-07 00:00:27
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/trytond_account (Old)
and /work/SRC/openSUSE:Factory/.trytond_account.new.31177 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "trytond_account"
Tue Dec 7 00:00:27 2021 rev:28 rq:936099 version:5.0.19
Changes:
--------
--- /work/SRC/openSUSE:Factory/trytond_account/trytond_account.changes
2021-06-19 23:05:22.955888076 +0200
+++
/work/SRC/openSUSE:Factory/.trytond_account.new.31177/trytond_account.changes
2021-12-07 00:02:14.183958759 +0100
@@ -1,0 +2,5 @@
+Mon Dec 6 17:50:01 UTC 2021 - Axel Braun <[email protected]>
+
+- Version 5.0.19 - Bugfix Release
+
+-------------------------------------------------------------------
Old:
----
trytond_account-5.0.18.tar.gz
trytond_account-5.0.18.tar.gz.asc
New:
----
trytond_account-5.0.19.tar.gz
trytond_account-5.0.19.tar.gz.asc
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ trytond_account.spec ++++++
--- /var/tmp/diff_new_pack.i3IB4X/_old 2021-12-07 00:02:14.843956424 +0100
+++ /var/tmp/diff_new_pack.i3IB4X/_new 2021-12-07 00:02:14.847956410 +0100
@@ -18,7 +18,7 @@
%define majorver 5.0
Name: trytond_account
-Version: %{majorver}.18
+Version: %{majorver}.19
Release: 0
Summary: The "account" module for the Tryton ERP system
License: GPL-3.0+
++++++ trytond_account-5.0.18.tar.gz -> trytond_account-5.0.19.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/trytond_account-5.0.18/.hgtags
new/trytond_account-5.0.19/.hgtags
--- old/trytond_account-5.0.18/.hgtags 2021-06-17 21:42:26.000000000 +0200
+++ new/trytond_account-5.0.19/.hgtags 2021-11-05 00:20:49.000000000 +0100
@@ -37,3 +37,4 @@
e7b4b8e0d7213ad2051531c759f7567bcbb9af8e 5.0.16
ab4f21ad3261e30b048a9dae8ab5de6ec1f7fa84 5.0.17
fa0e8af653621c155163807ce40d8eb4340a95e5 5.0.18
+0e3d6055b0fab40f58093ffc0946d9f986b8721e 5.0.19
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/trytond_account-5.0.18/CHANGELOG
new/trytond_account-5.0.19/CHANGELOG
--- old/trytond_account-5.0.18/CHANGELOG 2021-06-17 21:42:25.000000000
+0200
+++ new/trytond_account-5.0.19/CHANGELOG 2021-11-05 00:20:48.000000000
+0100
@@ -1,3 +1,6 @@
+Version 5.0.19 - 2021-11-04
+* Bug fixes (see mercurial logs for details)
+
Version 5.0.18 - 2021-06-17
* Bug fixes (see mercurial logs for details)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/trytond_account-5.0.18/PKG-INFO
new/trytond_account-5.0.19/PKG-INFO
--- old/trytond_account-5.0.18/PKG-INFO 2021-06-17 21:42:27.915169200 +0200
+++ new/trytond_account-5.0.19/PKG-INFO 2021-11-05 00:20:50.671066300 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.2
Name: trytond_account
-Version: 5.0.18
+Version: 5.0.19
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.18/account.py
new/trytond_account-5.0.19/account.py
--- old/trytond_account-5.0.18/account.py 2020-07-30 00:04:13.000000000
+0200
+++ new/trytond_account-5.0.19/account.py 2021-11-02 19:07:18.000000000
+0100
@@ -932,7 +932,7 @@
values[name][account.id] += getattr(deferral, name)
else:
with Transaction().set_context(fiscalyear=fiscalyear.id,
- date=None, periods=None):
+ date=None, periods=None, from_date=None, to_date=None):
previous_result = func(accounts, names)
for name in names:
vals = values[name]
@@ -1384,8 +1384,16 @@
pool = Pool()
Account = pool.get('account.account')
- period_ids = cls.get_period_ids(name)
- from_date, to_date = cls.get_dates(name)
+ period_ids, from_date, to_date = None, None, None
+ context = Transaction().context
+ if context.get('start_period') or context.get('end_period'):
+ period_ids = cls.get_period_ids(name)
+ elif context.get('from_date') or context.get('end_date'):
+ from_date, to_date = cls.get_dates(name)
+ else:
+ if name.startswith('start_'):
+ period_ids = []
+
with Transaction().set_context(
periods=period_ids,
from_date=from_date, to_date=to_date):
@@ -1485,27 +1493,42 @@
domain=[
('fiscalyear', '=', Eval('fiscalyear')),
('start_date', '<=', (Eval('end_period'), 'start_date')),
- ], depends=['fiscalyear', 'end_period'])
+ ],
+ states={
+ 'invisible': Eval('from_date', False) | Eval('to_date', False),
+ },
+ depends=['fiscalyear', 'end_period', 'from_date', 'to_date'])
end_period = fields.Many2One('account.period', 'End Period',
domain=[
('fiscalyear', '=', Eval('fiscalyear')),
('start_date', '>=', (Eval('start_period'), 'start_date'))
],
- depends=['fiscalyear', 'start_period'])
+ states={
+ 'invisible': Eval('from_date', False) | Eval('to_date', False),
+ },
+ depends=['fiscalyear', 'start_period', 'from_date', 'to_date'])
from_date = fields.Date("From Date",
domain=[
If(Eval('to_date') & Eval('from_date'),
('from_date', '<=', Eval('to_date')),
()),
],
- depends=['to_date'])
+ states={
+ 'invisible': (Eval('start_period', 'False')
+ | Eval('end_period', False)),
+ },
+ depends=['to_date', 'start_period', 'end_period'])
to_date = fields.Date("To Date",
domain=[
If(Eval('from_date') & Eval('to_date'),
('to_date', '>=', Eval('from_date')),
()),
],
- depends=['from_date'])
+ states={
+ 'invisible': (Eval('start_period', 'False')
+ | Eval('end_period', False)),
+ },
+ depends=['from_date', 'start_period', 'end_period'])
company = fields.Many2One('company.company', 'Company', required=True)
posted = fields.Boolean('Posted Move', help='Show only posted move')
@@ -1551,6 +1574,18 @@
and self.end_period.fiscalyear != self.fiscalyear):
self.end_period = None
+ def on_change_start_period(self):
+ self.from_date = self.to_date = None
+
+ def on_change_end_period(self):
+ self.from_date = self.to_date = None
+
+ def on_change_from_date(self):
+ self.start_period = self.end_period = None
+
+ def on_change_to_date(self):
+ self.start_period = self.end_period = None
+
class GeneralLedgerLine(ModelSQL, ModelView):
'General Ledger Line'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/trytond_account-5.0.18/tryton.cfg
new/trytond_account-5.0.19/tryton.cfg
--- old/trytond_account-5.0.18/tryton.cfg 2021-05-15 23:10:51.000000000
+0200
+++ new/trytond_account-5.0.19/tryton.cfg 2021-06-17 21:42:38.000000000
+0200
@@ -1,5 +1,5 @@
[tryton]
-version=5.0.18
+version=5.0.19
depends:
company
currency
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/trytond_account-5.0.18/trytond_account.egg-info/PKG-INFO
new/trytond_account-5.0.19/trytond_account.egg-info/PKG-INFO
--- old/trytond_account-5.0.18/trytond_account.egg-info/PKG-INFO
2021-06-17 21:42:27.000000000 +0200
+++ new/trytond_account-5.0.19/trytond_account.egg-info/PKG-INFO
2021-11-05 00:20:49.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.2
Name: trytond-account
-Version: 5.0.18
+Version: 5.0.19
Summary: Tryton module for accounting
Home-page: http://www.tryton.org/
Author: Tryton