IMP benefit
This commit is contained in:
parent
a8219076fb
commit
e1a9de5dde
|
|
@ -617,7 +617,7 @@ class GrantBenefitProfile(models.Model):
|
|||
|
||||
def validate_attachments(self):
|
||||
for rec in self:
|
||||
if not rec.owner_identity_attachment_ids and rec.is_family_member == False and rec.state != 'first_approve':
|
||||
if not rec.owner_identity_attachment_ids and rec.is_family_member == False and rec.state == 'first_approve':
|
||||
raise ValidationError(_("Account Holder Identity Attachment is required."))
|
||||
if not rec.family_approval_attachment_ids and rec.is_family_member == False and rec.state != 'draft':
|
||||
raise ValidationError(_("Family approval of transfer Attachment is required."))
|
||||
|
|
|
|||
Loading…
Reference in New Issue