From 44f588d437db429d1e9d4240356561d0cad0db08 Mon Sep 17 00:00:00 2001 From: benjamin <benjamin@le-filament.com> Date: Fri, 24 Mar 2023 11:21:45 +0100 Subject: [PATCH] [fix] compute has_bordereau --- report/scop_contribution_report.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/report/scop_contribution_report.py b/report/scop_contribution_report.py index 2c381a9..00ac369 100644 --- a/report/scop_contribution_report.py +++ b/report/scop_contribution_report.py @@ -26,8 +26,8 @@ class ScopContributionReport(models.Model): .sudo() .search( [ - ("partner_id", "=", self.partner_id.id), - ("year", "=", self.year), + ("partner_id", "=", contribution.partner_id.id), + ("year", "=", contribution.year), ] ) ) -- GitLab