diff --git a/odex25_ensan/odex_benefit/i18n/ar_001.po b/odex25_ensan/odex_benefit/i18n/ar_001.po index f0d76f6cb..93e3e3efa 100644 --- a/odex25_ensan/odex_benefit/i18n/ar_001.po +++ b/odex25_ensan/odex_benefit/i18n/ar_001.po @@ -2656,7 +2656,7 @@ msgstr "موديل السيارة" #: model:ir.model.fields,field_description:odex_benefit.field_family_member__case_study #: model:ir.model.fields,field_description:odex_benefit.field_grant_benefit__case_study msgid "Case Study" -msgstr "" +msgstr "استمرارية التعليم" #. module: odex_benefit #: model:ir.model.fields,field_description:odex_benefit.field_family_validation_setting__cash_expense diff --git a/odex25_ensan/odex_benefit/models/benefit.py b/odex25_ensan/odex_benefit/models/benefit.py index d283ca134..6bfc6b985 100644 --- a/odex25_ensan/odex_benefit/models/benefit.py +++ b/odex25_ensan/odex_benefit/models/benefit.py @@ -126,6 +126,7 @@ class GrantBenefitProfile(models.Model): ('Appendix', 'Appendix'), ], default='apartment') property_instrument_number = fields.Char(string='Property Instrument number') property_instrument_attach = fields.Binary(attachment=True,string='Property Instrument Attach') + electricity_attach = fields.Binary(attachment=True,string='Electricity Attach') property_instrument_date = fields.Date(string='Property Instrument Date') location_url = fields.Char(string='Location URL') location = fields.Char(string='location') @@ -170,6 +171,7 @@ class GrantBenefitProfile(models.Model): mother_relation = fields.Selection( [('mother', _('Mother')), ('replacement_mother', _('Replacement Mother'))]) mother_relationn = fields.Many2one('relation.settings',domain="['|',('relation_type','=','mother'),('relation_type','=','replacement_mother')]") + replacement_mother_relation = fields.Many2one('relation.settings',domain="[('relation_type','=','replacement_mother')]") mother_id = fields.Many2one('grant.benefit', domain="[('benefit_type','!=','orphan'),('gender','=','female')]") mother_name = fields.Char(string="Mother Name", tracking=True) mother_second_name = fields.Char(string="Mother Second Name", tracking=True) @@ -210,8 +212,7 @@ class GrantBenefitProfile(models.Model): date_death_husband = fields.Date() date_divorcee = fields.Date() # Education_data - education_status = fields.Selection(string='Education Status', - selection=[('educated', 'educated'), ('illiterate', 'illiterate')]) + education_status = fields.Selection(string='Education Status',selection=[('educated', 'educated'), ('illiterate', 'illiterate'),('under_study_age','Under Study Age')]) case_study = fields.Selection(string='Case Study', selection=[('continuous', 'continuous'), ('intermittent', 'intermittent'), ('graduate', 'Graduate')]) @@ -486,8 +487,7 @@ class GrantBenefitProfile(models.Model): replacement_is_alhaju = fields.Boolean(string='IS Hajj') replacement_is_amra = fields.Boolean(string='IS Umra') # Education_data for replacement mother - replacement_education_status = fields.Selection(string='Education Status', - selection=[('educated', 'educated'), ('illiterate', 'illiterate')]) + replacement_education_status = fields.Selection(string='Education Status',selection=[('educated', 'educated'), ('illiterate', 'illiterate'),('under_study_age','Under Study Age')]) replacement_case_study = fields.Selection(string='Case Study', selection=[('continuous', 'continuous'), ('intermittent', 'intermittent'), ('graduate', 'Graduate')]) @@ -1392,7 +1392,7 @@ class GrantBenefitProfile(models.Model): 'is_mother':True, 'birth_date': rec.replacement_mother_birth_date, 'gender': 'female', - 'relationn': self.env['relation.settings'].search([('relation_type','=','replacement_mother')]).id, + 'relationn': rec.replacement_mother_relation.id, 'mother_marital_conf': rec.replacement_mother_marital_conf.id, 'mother_location': rec.replacement_mother_location, 'age': rec.replacement_mother_age, @@ -1490,7 +1490,7 @@ class GrantBenefitProfile(models.Model): 'is_mother': True, 'birth_date': rec.replacement_mother_birth_date, 'gender': 'female', - 'relationn': self.env['relation.settings'].search([('relation_type','=','replacement_mother')]).id, + 'relationn': rec.replacement_mother_relation.id, 'mother_marital_conf': rec.replacement_mother_marital_conf.id, 'mother_location': rec.replacement_mother_location, 'age': rec.replacement_mother_age, diff --git a/odex25_ensan/odex_benefit/models/family_members.py b/odex25_ensan/odex_benefit/models/family_members.py index 4af9778ca..fe912a56e 100644 --- a/odex25_ensan/odex_benefit/models/family_members.py +++ b/odex25_ensan/odex_benefit/models/family_members.py @@ -74,8 +74,7 @@ class FamilyMemberProfile(models.Model): is_alhaju = fields.Boolean(string='Member Hajj') is_amra = fields.Boolean(string='Member Umra') # Education_data - education_status = fields.Selection(string='Education Status', - selection=[('educated', 'educated'), ('illiterate', 'illiterate')]) + education_status = fields.Selection(string='Education Status',selection=[('educated', 'educated'), ('illiterate', 'illiterate'),('under_study_age', 'Under Study Age')]) case_study = fields.Selection(string='Case Study', selection=[('continuous', 'continuous'), ('intermittent', 'intermittent'), ('graduate', 'Graduate')]) diff --git a/odex25_ensan/odex_benefit/views/benefit_view.xml b/odex25_ensan/odex_benefit/views/benefit_view.xml index 9d9960af4..910d7d245 100644 --- a/odex25_ensan/odex_benefit/views/benefit_view.xml +++ b/odex25_ensan/odex_benefit/views/benefit_view.xml @@ -243,6 +243,7 @@ +