diff --git a/partner_statement/report/activity_statement.py b/partner_statement/report/activity_statement.py index 29512803..4bc2acce 100644 --- a/partner_statement/report/activity_statement.py +++ b/partner_statement/report/activity_statement.py @@ -64,12 +64,7 @@ class ActivityStatement(models.AbstractModel): THEN l.name ELSE '/' END as name, - CASE WHEN (aj.type IN ('sale', 'purchase')) - THEN l.ref - WHEN (aj.type in ('bank', 'cash')) - THEN 'Payment' - ELSE '' - END as ref, + l.ref as ref, l.blocked, l.currency_id, l.company_id, CASE WHEN (l.currency_id is not null AND l.amount_currency > 0.0) THEN sum(l.amount_currency) @@ -97,12 +92,7 @@ class ActivityStatement(models.AbstractModel): THEN l.name ELSE '/' END, - CASE WHEN (aj.type IN ('sale', 'purchase')) - THEN l.ref - WHEN (aj.type in ('bank', 'cash')) - THEN 'Payment' - ELSE '' - END, + l.ref, l.blocked, l.currency_id, l.amount_currency, l.company_id """, locals()), "utf-8")