Hello community, here is the log from the commit of package trytond_account for openSUSE:Factory checked in at 2016-10-06 12:48:11 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/trytond_account (Old) and /work/SRC/openSUSE:Factory/.trytond_account.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "trytond_account" Changes: -------- --- /work/SRC/openSUSE:Factory/trytond_account/trytond_account.changes 2016-09-23 11:31:55.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.trytond_account.new/trytond_account.changes 2016-10-06 12:48:12.000000000 +0200 @@ -1,0 +2,5 @@ +Tue Oct 4 19:15:14 UTC 2016 - axel.br...@gmx.de + +- version 3.8.4 + +------------------------------------------------------------------- Old: ---- trytond_account-3.8.3.tar.gz New: ---- trytond_account-3.8.4.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ trytond_account.spec ++++++ --- /var/tmp/diff_new_pack.oekEWQ/_old 2016-10-06 12:48:13.000000000 +0200 +++ /var/tmp/diff_new_pack.oekEWQ/_new 2016-10-06 12:48:13.000000000 +0200 @@ -19,16 +19,16 @@ %define majorver 3.8 Name: trytond_account -Version: %{majorver}.3 +Version: %{majorver}.4 Release: 0 Summary: The "account" module for the Tryton ERP system License: GPL-3.0+ Group: Productivity/Office/Management Url: http://www.tryton.org/ Source: http://downloads.tryton.org/%{majorver}/%{name}-%{version}.tar.gz +BuildRequires: fdupes BuildRequires: python-devel BuildRequires: python-setuptools -BuildRequires: fdupes Requires: trytond Requires: trytond_company Requires: trytond_currency ++++++ trytond_account-3.8.3.tar.gz -> trytond_account-3.8.4.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond_account-3.8.3/CHANGELOG new/trytond_account-3.8.4/CHANGELOG --- old/trytond_account-3.8.3/CHANGELOG 2016-09-03 12:58:42.000000000 +0200 +++ new/trytond_account-3.8.4/CHANGELOG 2016-10-02 21:34:18.000000000 +0200 @@ -1,3 +1,6 @@ +Version 3.8.4 - 2016-10-02 +* Bug fixes (see mercurial logs for details) + Version 3.8.3 - 2016-09-03 * Bug fixes (see mercurial logs for details) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond_account-3.8.3/PKG-INFO new/trytond_account-3.8.4/PKG-INFO --- old/trytond_account-3.8.3/PKG-INFO 2016-09-03 12:58:54.000000000 +0200 +++ new/trytond_account-3.8.4/PKG-INFO 2016-10-02 21:34:29.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: trytond_account -Version: 3.8.3 +Version: 3.8.4 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-3.8.3/party.py new/trytond_account-3.8.4/party.py --- old/trytond_account-3.8.3/party.py 2016-09-03 12:58:24.000000000 +0200 +++ new/trytond_account-3.8.4/party.py 2016-10-02 21:34:01.000000000 +0200 @@ -2,7 +2,7 @@ # this repository contains the full copyright notices and license terms. from decimal import Decimal -from sql import Literal, Null +from sql import Literal, Null, Cast from sql.aggregate import Sum from sql.conditionals import Coalesce @@ -146,9 +146,14 @@ today_query = ((line.maturity_date <= Date.today()) | (line.maturity_date == Null)) - line_query, _ = MoveLine.query_get(line) Operator = fields.SQL_OPERATORS[clause[1]] + # 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_) query = line.join(account, condition=account.id == line.account ).select(line.party, where=account.active @@ -156,9 +161,7 @@ & (line.party != Null) & (line.reconciliation == Null) & (account.company == company_id) - & line_query & today_query, + & today_query, group_by=line.party, - having=Operator(Sum(Coalesce(line.debit, 0) - - Coalesce(line.credit, 0)), - Decimal(clause[2] or 0))) + having=Operator(amount, value)) return [('id', 'in', query)] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond_account-3.8.3/tryton.cfg new/trytond_account-3.8.4/tryton.cfg --- old/trytond_account-3.8.3/tryton.cfg 2016-07-05 23:14:02.000000000 +0200 +++ new/trytond_account-3.8.4/tryton.cfg 2016-09-03 12:59:13.000000000 +0200 @@ -1,5 +1,5 @@ [tryton] -version=3.8.3 +version=3.8.4 depends: company currency diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond_account-3.8.3/trytond_account.egg-info/PKG-INFO new/trytond_account-3.8.4/trytond_account.egg-info/PKG-INFO --- old/trytond_account-3.8.3/trytond_account.egg-info/PKG-INFO 2016-09-03 12:58:52.000000000 +0200 +++ new/trytond_account-3.8.4/trytond_account.egg-info/PKG-INFO 2016-10-02 21:34:28.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: trytond-account -Version: 3.8.3 +Version: 3.8.4 Summary: Tryton module for accounting Home-page: http://www.tryton.org/ Author: Tryton