From 6a871e5d5c81a0390a9d4754cc898e7ee030e76e Mon Sep 17 00:00:00 2001 From: Manuel Claeys Bouuaert Date: Tue, 19 May 2020 18:06:56 +0200 Subject: [PATCH] fixup! [ADD] easy_my_coop: effective date field on operation request --- easy_my_coop/models/operation_request.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/easy_my_coop/models/operation_request.py b/easy_my_coop/models/operation_request.py index e6d247d..5a91340 100644 --- a/easy_my_coop/models/operation_request.py +++ b/easy_my_coop/models/operation_request.py @@ -123,7 +123,7 @@ class OperationRequest(models.Model): @api.constrains("effective_date") def _constrain_effective_date(self): for obj in self: - if obj.effective_date > fields.Datetime.now(): + if obj.effective_date > fields.Date.today(): raise ValidationError("The effective date can not be in the future.")\ @api.multi