From 13d5a9e419dd1bae4f8f7308961d98b4b3f2ee19 Mon Sep 17 00:00:00 2001 From: jordan <jordan@le-filament.com> Date: Wed, 10 Feb 2021 17:04:49 +0100 Subject: [PATCH] =?UTF-8?q?[fix]=20adh=C3=A9rents=20renouvel=C3=A9s=20if?= =?UTF-8?q?=20start=20date=20adh=C3=A9sion=20before=2001/01=20of=20year?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- models/scop_cotisation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/scop_cotisation.py b/models/scop_cotisation.py index 2724f58..c601900 100644 --- a/models/scop_cotisation.py +++ b/models/scop_cotisation.py @@ -98,7 +98,7 @@ class ScopCotisation(models.AbstractModel): members = self.env['scop.membership.period'].search([ ('type_id', '=', self.env.ref( 'cgscop_partner.membership_type_1').id), - ('start', '<', date(self.year, 12, 31)), + ('start', '<', date(self.year, 1, 1)), '|', ('end', '=', None), ('end', '>', date(self.year, 1, 1)) -- GitLab