diff --git a/wizard/scop_deces_wizard.py b/wizard/scop_deces_wizard.py index 5a085d4a44e3cf30cb9ecf37725b581548197505..ec2e1b755db1751cbcb1c0b4ad63410996c42a5a 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: