From 22853aa51009e6a75faeeb743272a6be09a9ce11 Mon Sep 17 00:00:00 2001 From: benjamin <benjamin@le-filament.com> Date: Mon, 23 May 2022 17:10:02 +0200 Subject: [PATCH] [fix] error payment view --- report/scop_contribution_report.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/report/scop_contribution_report.py b/report/scop_contribution_report.py index 0601eb5..b1471ab 100644 --- a/report/scop_contribution_report.py +++ b/report/scop_contribution_report.py @@ -208,7 +208,7 @@ class ScopContributionReport(models.Model): "credit": p.credit, "class": "", } - if not p.invoice_id + if not p.move_id.move_type in ("out_invoice", "out_refund") else { "date": p.date, "name": p.name, -- GitLab