diff --git a/models/scop_period.py b/models/scop_period.py index 8e9ddbd57ba49a23305d0abfa6eb116bd9491359..2484372556fcefdec5eade04e0b3d295c9a2d790 100644 --- a/models/scop_period.py +++ b/models/scop_period.py @@ -25,6 +25,7 @@ class ScopPeriod(models.Model): ('acti', "Changement d'activité (NAF)"), ('adr', "Changement d'adresse"), ('nom', "Changement de dénomination sociale"), + ('deces', 'Décès'), ('autr', "Autres")], string='Motif de fin de validité') comments = fields.Text('Commentaires') diff --git a/wizard/scop_deces_wizard.py b/wizard/scop_deces_wizard.py index f8861d9c1e7a89babacf22e2dffd0e3dd642e191..92084339ce7a7dd6ccc46f243818c3eb2f6bdca6 100644 --- a/wizard/scop_deces_wizard.py +++ b/wizard/scop_deces_wizard.py @@ -45,7 +45,7 @@ class ScopDecesWizard(models.TransientModel): if period.end >= last_period.start: last_period.write({ 'end': period.end, - 'end_reason': 'autr', + 'end_reason': 'deces', 'dissolution_reason_id': period.dissolution_reason_id.id, 'comments': period.comments,