From cfe6873d583ae586666684ff097bcb163590bc08 Mon Sep 17 00:00:00 2001 From: benjamin <benjamin@le-filament.com> Date: Wed, 31 Jan 2024 10:23:44 +0100 Subject: [PATCH] [FIX] error compute ur idf --- wizard/scop_bordereau_update_liasse_wizard.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wizard/scop_bordereau_update_liasse_wizard.py b/wizard/scop_bordereau_update_liasse_wizard.py index 6932df5..5ef8c70 100644 --- a/wizard/scop_bordereau_update_liasse_wizard.py +++ b/wizard/scop_bordereau_update_liasse_wizard.py @@ -160,9 +160,9 @@ class ScopBordereauChangeLiasse(models.TransientModel): cotiz_ur_idf = cotiz.filtered( lambda i: i.type_contribution_id.id == type_cotisation_ur ) - r.amount_ur_med = sum(cotiz_ur_idf.mapped("amount_total")) + r.amount_ur_idf = sum(cotiz_ur_idf.mapped("amount_total")) else: - r.amount_ur_med = 0 + r.amount_ur_idf = 0 # ------------------------------------------------------ # Onchange -- GitLab