[UPD] odex_takaful
This commit is contained in:
parent
d5e89d6c41
commit
6c39df399f
|
|
@ -71,8 +71,8 @@ class DonationExtensionWizard(models.TransientModel):
|
||||||
for line in donation_detail_ids:
|
for line in donation_detail_ids:
|
||||||
if line.record_type == 'donation' or line.sponsorship_duration == 'permanent':
|
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)
|
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):
|
# 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)
|
# 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']:
|
if line.state not in ['active', 'replace']:
|
||||||
raise ValidationError(_("Only active donations can be extended. Line: %s") % line.name)
|
raise ValidationError(_("Only active donations can be extended. Line: %s") % line.name)
|
||||||
extension_line_ids.append((0, 0, {
|
extension_line_ids.append((0, 0, {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue