commit
3bd8c8fcc7
|
|
@ -461,7 +461,7 @@ class FamilyMemberProfile(models.Model):
|
||||||
for rec in self:
|
for rec in self:
|
||||||
current_education_status_id = rec.member_education_status_ids.filtered(lambda r: r.education_status_type == 'current')
|
current_education_status_id = rec.member_education_status_ids.filtered(lambda r: r.education_status_type == 'current')
|
||||||
if rec.state == 'second_approve' and rec.is_excluded_suspension:
|
if rec.state == 'second_approve' and rec.is_excluded_suspension:
|
||||||
rec.write({'member_status': 'benefit'})
|
rec.member_status = 'benefit'
|
||||||
continue
|
continue
|
||||||
if rec.birth_date:
|
if rec.birth_date:
|
||||||
validation_setting = self.env["family.validation.setting"].search([], limit=1)
|
validation_setting = self.env["family.validation.setting"].search([], limit=1)
|
||||||
|
|
@ -691,15 +691,15 @@ class FamilyMemberProfile(models.Model):
|
||||||
# raise ValidationError(
|
# raise ValidationError(
|
||||||
# _('The ID Number Already Exist!'))
|
# _('The ID Number Already Exist!'))
|
||||||
|
|
||||||
#@api.onchange('relationn','member_status','gender','birth_date', 'is_scientific_specialty', 'is_medical_specialty', 'is_married',
|
@api.onchange('relationn','member_status','gender','birth_date', 'is_scientific_specialty', 'is_medical_specialty', 'is_married',
|
||||||
# 'minor_siblings','member_income','is_married','member_location_conf','education_status','case_study')
|
'minor_siblings','member_income','is_married','member_location_conf','education_status','case_study')
|
||||||
#def onchange_member_status(self):
|
def onchange_member_status(self):
|
||||||
# res ={}
|
res ={}
|
||||||
# for rec in self:
|
for rec in self:
|
||||||
# if rec.member_status == 'non_benefit':
|
if rec.member_status == 'non_benefit':
|
||||||
# res['warning'] = {'title': _('ValidationError'),
|
res['warning'] = {'title': _('ValidationError'),
|
||||||
# 'message': _('Not Benefit')}
|
'message': _('Not Benefit')}
|
||||||
# return res
|
return res
|
||||||
|
|
||||||
#Member Suspend Manual
|
#Member Suspend Manual
|
||||||
def action_suspend(self):
|
def action_suspend(self):
|
||||||
|
|
|
||||||
|
|
@ -596,7 +596,7 @@
|
||||||
<group>
|
<group>
|
||||||
<field name="replacement_mother_relation" class="oe_inline"
|
<field name="replacement_mother_relation" class="oe_inline"
|
||||||
options='{"no_open": True,"no_create_edit": True}'
|
options='{"no_open": True,"no_create_edit": True}'
|
||||||
attrs="{('add_replacement_mother','=',True)],'readonly':[('state','not in',['draft','new','complete_info'])]}"/>
|
attrs="{'required':[('add_replacement_mother','=',True)],'readonly':[('state','not in',['draft','new','complete_info'])]}"/>
|
||||||
<field name="replacement_mother_id_number"
|
<field name="replacement_mother_id_number"
|
||||||
attrs="{'required':[('add_replacement_mother','=',True)],'readonly':[('state','not in',['draft','new','complete_info'])]}"/>
|
attrs="{'required':[('add_replacement_mother','=',True)],'readonly':[('state','not in',['draft','new','complete_info'])]}"/>
|
||||||
<field name="replacement_mother_id_number_type"
|
<field name="replacement_mother_id_number_type"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue