From dcc2f57f2d0459c54771882edd014c99035f3d24 Mon Sep 17 00:00:00 2001 From: mreficent Date: Wed, 31 Jul 2019 16:48:09 +0200 Subject: [PATCH 1/2] [FIX] outstanding_statement: show only open invoices --- partner_statement/report/outstanding_statement.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/partner_statement/report/outstanding_statement.py b/partner_statement/report/outstanding_statement.py index 74c6a07d..90c0c482 100644 --- a/partner_statement/report/outstanding_statement.py +++ b/partner_statement/report/outstanding_statement.py @@ -72,8 +72,8 @@ class OutstandingStatement(models.AbstractModel): Q1.date, Q1.date_maturity, Q1.debit, Q1.credit, Q1.name, Q1.ref, Q1.blocked, Q1.company_id, CASE WHEN Q1.currency_id is not null - THEN open_amount_currency - ELSE open_amount + THEN Q1.open_amount_currency + ELSE Q1.open_amount END as open_amount FROM Q1 """, locals() @@ -90,7 +90,7 @@ class OutstandingStatement(models.AbstractModel): Q2.open_amount FROM Q2 JOIN res_company c ON (c.id = Q2.company_id) - WHERE c.id = %(company_id)s + WHERE c.id = %(company_id)s AND Q2.open_amount != 0.0 """, locals()), "utf-8" ) From 3f627a4d3a9b92052970697a30d9488cd9f819f4 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Tue, 27 Aug 2019 11:35:57 +0000 Subject: [PATCH 2/2] partner_statement 12.0.1.0.1 --- partner_statement/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/partner_statement/__manifest__.py b/partner_statement/__manifest__.py index f4b4299d..a0ecb3fe 100644 --- a/partner_statement/__manifest__.py +++ b/partner_statement/__manifest__.py @@ -4,7 +4,7 @@ { 'name': 'Partner Statement', - 'version': '12.0.1.0.0', + 'version': '12.0.1.0.1', 'category': 'Accounting & Finance', 'summary': 'OCA Financial Reports', 'author': "Eficent, Odoo Community Association (OCA)",