IMP benefit

This commit is contained in:
younes 2025-09-21 13:46:58 +01:00
parent 5293871416
commit 6786827ba2
1 changed files with 3 additions and 3 deletions

View File

@ -262,14 +262,14 @@ class FamilyMemberProfile(models.Model):
# )
# return super(FamilyMemberProfile, self).write(vals)
<<<<<<< HEAD
@api.onchange('relationn_type')
def _onchange_relationn_type(self):
if self.relationn_type in ['mother', 'replacement_mother']:
return {'domain': {'member_location_conf': [('location_type', '=', 'mother_location')]}}
else:
return {'domain': {'member_location_conf': [('location_type', '=', 'member')]}}
=======
@api.onchange('age')
def _check_son_daughter_age(self):
for rec in self:
@ -282,7 +282,7 @@ class FamilyMemberProfile(models.Model):
raise ValidationError(
_("The son/daughter's age is supposed to be less than the mother's age by %s" % rec.relationn.age_difference)
)
>>>>>>> e7950687880663fd59cd99be55cab71ca3bd4bd9
@api.depends('age_status', 'is_dead','benefit_id.member_ids.age_status','benefit_id.member_ids.is_dead')
def _compute_minor_siblings(self):