From 0da6df391f0b84e6d8933c9b7a4c4c5328e87ee2 Mon Sep 17 00:00:00 2001 From: Remi <remi@le-filament.com> Date: Tue, 29 Oct 2019 12:26:39 +0100 Subject: [PATCH] =?UTF-8?q?Ajout=20type=20de=20fin=20de=20p=C3=A9riode=20?= =?UTF-8?q?=3D=20d=C3=A9c=C3=A8s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- models/scop_period.py | 1 + wizard/scop_deces_wizard.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/models/scop_period.py b/models/scop_period.py index 8e9ddbd..2484372 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 f8861d9..9208433 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, -- GitLab