From 7c6c1880315233e9d288853d1c916797f3071b31 Mon Sep 17 00:00:00 2001 From: Nicolas Lempereur Date: Fri, 22 Apr 2016 10:44:59 +0200 Subject: [PATCH] [FIX] account_extra_report: operator precedence typo opw-675734 --- .../account_extra_reports/report/account_partner_ledger.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/account_extra_reports/report/account_partner_ledger.py b/addons/account_extra_reports/report/account_partner_ledger.py index a5ca5ed2a3c..12ddab4e451 100644 --- a/addons/account_extra_reports/report/account_partner_ledger.py +++ b/addons/account_extra_reports/report/account_partner_ledger.py @@ -28,9 +28,9 @@ class ReportPartnerLedger(models.AbstractModel): sum = 0.0 for r in res: r['displayed_name'] = '-'.join( - r['move_name'] not in ['', '/'] and [r['move_name']] or [] + - r['ref'] not in ['', '/'] and [r['ref']] or [] + - r['name'] not in ['', '/'] and [r['name']] or [] + (r['move_name'] not in ['', '/'] and [r['move_name']] or []) + + (r['ref'] not in ['', '/'] and [r['ref']] or []) + + (r['name'] not in ['', '/'] and [r['name']] or []) ) sum += r['debit'] - r['credit'] r['progress'] = sum