From 47c17513306cbec1aee905479b9d77d26770d05c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Herv=C3=A9=20Silvant=20-=20CGScop?= <hsilvant@scop.coop>
Date: Thu, 16 Apr 2020 09:28:41 +0000
Subject: [PATCH] Apply suggestion to wizard/scop_deces_wizard.py

---
 wizard/scop_deces_wizard.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/wizard/scop_deces_wizard.py b/wizard/scop_deces_wizard.py
index 5a085d4..ec2e1b7 100644
--- a/wizard/scop_deces_wizard.py
+++ b/wizard/scop_deces_wizard.py
@@ -68,8 +68,7 @@ class ScopDecesWizard(models.TransientModel):
                 # On procède à la radiation à la même date
                 #..........................................
                 # Lecture du motif de radiation type décès
-                motif = self.env['scop.membership.reason.end'].search([
-                ('name', '=', 'Mort économique')], limit=1)
+                motif = self.env.ref('cgscop_partner.reason_end_membership_5')
 
                 # Mise à jour des périodes d'adhésions
                 if motif:
-- 
GitLab