[tryton-debian-vcs] tryton-modules-account branch debian-stretch-3.6 updated. debian/3.6.9-1-2-gbc4c7a1
Mathias Behrle
tryton-debian-vcs at alioth.debian.org
Thu Oct 5 12:22:45 UTC 2017
The following commit has been merged in the debian-stretch-3.6 branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-modules-account.git;a=commitdiff;h=debian/3.6.9-1-2-gbc4c7a1
commit bc4c7a1bb2a56c7ce52f9e6d951021046c5b4cd2
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Thu Oct 5 11:35:18 2017 +0200
Releasing debian version 3.6.10-1.
Signed-off-by: Mathias Behrle <mathiasb at m9s.biz>
diff --git a/debian/changelog b/debian/changelog
index e7aa263..18c98d4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+tryton-modules-account (3.6.10-1) unstable; urgency=medium
+
+ * Merging upstream version 3.6.10.
+
+ -- Mathias Behrle <mathiasb at m9s.biz> Thu, 05 Oct 2017 11:35:18 +0200
+
tryton-modules-account (3.6.9-1) unstable; urgency=medium
* Add the actual upstream maintainer key to signing-key.asc.
commit a16523e47cfdcd662f26e3fbdccdf8a221cb4cd1
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Thu Oct 5 11:35:17 2017 +0200
Merging upstream version 3.6.10.
diff --git a/CHANGELOG b/CHANGELOG
index 98045fd..19ffb11 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 3.6.10 - 2017-10-04
+* Bug fixes (see mercurial logs for details)
+
Version 3.6.9 - 2017-08-08
* Bug fixes (see mercurial logs for details)
diff --git a/PKG-INFO b/PKG-INFO
index 3f0bf0e..c1b8f99 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: trytond_account
-Version: 3.6.9
+Version: 3.6.10
Summary: Tryton module for accounting
Home-page: http://www.tryton.org/
Author: Tryton
diff --git a/party.py b/party.py
index 5fafb14..5e8d2c3 100644
--- a/party.py
+++ b/party.py
@@ -133,6 +133,7 @@ class Party:
if name not in ('receivable', 'payable',
'receivable_today', 'payable_today'):
raise Exception('Bad argument')
+ _, operator, value = clause
user = User(Transaction().user)
if not user.company:
@@ -146,14 +147,17 @@ class Party:
today_query = ((line.maturity_date <= Date.today())
| (line.maturity_date == Null))
- Operator = fields.SQL_OPERATORS[clause[1]]
+ Operator = fields.SQL_OPERATORS[operator]
# Need to cast numeric for sqlite
type_ = MoveLine.debit.sql_type().base
amount = Cast(
Sum(Coalesce(line.debit, 0) - Coalesce(line.credit, 0)),
type_)
- value = Cast(Literal(Decimal(clause[2] or 0)), type_)
+ if operator in {'in', 'not in'}:
+ value = [Cast(Literal(Decimal(v or 0)), type_) for v in value]
+ else:
+ value = Cast(Literal(Decimal(value or 0)), type_)
query = line.join(account, condition=account.id == line.account
).select(line.party,
where=account.active
diff --git a/tryton.cfg b/tryton.cfg
index ab4a57d..7325360 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
[tryton]
-version=3.6.9
+version=3.6.10
depends:
company
currency
diff --git a/trytond_account.egg-info/PKG-INFO b/trytond_account.egg-info/PKG-INFO
index 46a55b8..66a8ddb 100644
--- a/trytond_account.egg-info/PKG-INFO
+++ b/trytond_account.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: trytond-account
-Version: 3.6.9
+Version: 3.6.10
Summary: Tryton module for accounting
Home-page: http://www.tryton.org/
Author: Tryton
--
tryton-modules-account
More information about the tryton-debian-vcs
mailing list