[FIX] account_extra_report: operator precedence typo

opw-675734
This commit is contained in:
Nicolas Lempereur
2016-04-22 10:48:23 +02:00
parent 6f8030a6f7
commit 7c6c188031
@@ -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