From 6c39df399fea2d7f415ffadf55f1b3c413279e1e Mon Sep 17 00:00:00 2001 From: Samir Ladoui Date: Tue, 13 Jan 2026 10:06:41 +0100 Subject: [PATCH] [UPD] odex_takaful --- .../odex_takaful/wizards/donation_extension_wizard.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/odex25_takaful/odex_takaful/wizards/donation_extension_wizard.py b/odex25_takaful/odex_takaful/wizards/donation_extension_wizard.py index 562bc2997..a70dfc0b4 100644 --- a/odex25_takaful/odex_takaful/wizards/donation_extension_wizard.py +++ b/odex25_takaful/odex_takaful/wizards/donation_extension_wizard.py @@ -71,8 +71,8 @@ class DonationExtensionWizard(models.TransientModel): for line in donation_detail_ids: if line.record_type == 'donation' or line.sponsorship_duration == 'permanent': raise ValidationError(_("Only donation with direct debit or sponsorship can be extended. Line: %s") % line.name) - if line.end_date and line.end_date < fields.Date.context_today(line): - raise ValidationError(_("Only active donations with end date in the future can be extended. Line: %s") % line.name) + # if line.end_date and line.end_date < fields.Date.context_today(line): + # raise ValidationError(_("Only active donations with end date in the future can be extended. Line: %s") % line.name) if line.state not in ['active', 'replace']: raise ValidationError(_("Only active donations can be extended. Line: %s") % line.name) extension_line_ids.append((0, 0, {