IMP benefit
This commit is contained in:
parent
5293871416
commit
6786827ba2
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in New Issue