diff --git a/odex25_ensan/odex_benefit/i18n/ar_001.po b/odex25_ensan/odex_benefit/i18n/ar_001.po
index 7733a9445..ef636970a 100644
--- a/odex25_ensan/odex_benefit/i18n/ar_001.po
+++ b/odex25_ensan/odex_benefit/i18n/ar_001.po
@@ -2927,6 +2927,12 @@ msgstr "مواطن"
msgid "City"
msgstr "المحافظة"
+#. module: odex_benefit
+#: model:ir.model.fields,field_description:odex_benefit.field_branch_settings__city_id
+#: model:ir.model.fields,field_description:odex_benefit.field_res_districts__city_id
+msgid "City"
+msgstr "المدينة"
+
#. module: odex_benefit
#: model:ir.model.fields,field_description:odex_benefit.field_education_status__classroom
#: model:ir.model.fields,field_description:odex_benefit.field_family_member__classroom
@@ -5892,6 +5898,11 @@ msgstr "الوحدات السكنية"
msgid "Housing Cat"
msgstr "حالة المنزل"
+#. module: odex_benefit
+#: model:ir.model.fields,field_description:odex_benefit.field_grant_benefit__housing_city
+msgid "Housing City"
+msgstr "المدينة"
+
#. module: odex_benefit
#: model:ir.model.fields,field_description:odex_benefit.field_generate_reports__housing_financial_type
msgid "Housing Financial Type"
@@ -8135,6 +8146,13 @@ msgstr "صباحًا"
msgid "Mother"
msgstr "بيانات الأم"
+#. module: odex_benefit
+#: model:ir.model.fields,field_description:odex_benefit.field_grant_benefit__mother_dead_city
+#: model:ir.model.fields,field_description:odex_benefit.field_grant_benefit__mother_dead_city_id
+#: model:ir.model.fields,field_description:odex_benefit.field_grant_benefit__replacement_mother_dead_city_id
+msgid "Mother Dead City"
+msgstr "مدينة وفاة الأم"
+
#. module: odex_benefit
#: model:ir.model.fields,field_description:odex_benefit.field_grant_benefit__mother_education_status_ids
msgid "Mother Education Status"
@@ -14183,6 +14201,12 @@ msgstr ".مرفق إقرار أفراد الأسرة بالتحويل مطلوب
msgid "Father Dead Certificate is required."
msgstr ".مرفق شهادة وفاة الأب مطلوب"
+#. module: odex_benefit
+#: model:ir.model.fields,field_description:odex_benefit.field_grant_benefit__father_dead_city
+#: model:ir.model.fields,field_description:odex_benefit.field_grant_benefit__father_dead_city_id
+msgid "Father Dead City"
+msgstr "مدينة وفاة الأب"
+
#. module: odex_benefit
#: model:ir.model.fields,field_description:odex_benefit.field_res_city__country_city_id
#: model_terms:ir.ui.view,arch_db:odex_benefit.grant_benefit_form
diff --git a/odex25_ensan/odex_benefit/models/benefit.py b/odex25_ensan/odex_benefit/models/benefit.py
index bb51c7b52..fc3abb62d 100644
--- a/odex25_ensan/odex_benefit/models/benefit.py
+++ b/odex25_ensan/odex_benefit/models/benefit.py
@@ -176,7 +176,8 @@ class GrantBenefitProfile(models.Model):
father_dead_date = fields.Date(string="Father Dead Date")
father_dead_country_id = fields.Many2one('res.country', string='Father Dead Country', tracking=True)
father_dead_city_id = fields.Many2one('res.country.city', string='Father Dead City',domain="[('country_id', '=', father_dead_country_id)]")
- father_dead_res_city_id = fields.Many2one('res.city', string='Father Dead City',domain="[('country_id', '=', father_dead_country_id)]")
+ # father_dead_res_city_id = fields.Many2one('res.city', string='Father Dead City',domain="[('country_id', '=', father_dead_country_id)]")
+ father_dead_city = fields.Char(string='Father Dead City')
father_dead_certificate = fields.Many2many('ir.attachment', 'rel_father_dead_attachment','benefit_id','attachment_id',string='Father Dead Certificate')
# Mother's case and her data # Birth Date # Address # dead data
mother_relation = fields.Selection(
@@ -200,7 +201,8 @@ class GrantBenefitProfile(models.Model):
mother_is_dead = fields.Boolean(string='Mother Is Dead?',related='mother_marital_conf.is_dead')
mother_dead_country_id = fields.Many2one('res.country', string='Mother Dead Country', tracking=True)
mother_dead_city_id = fields.Many2one('res.country.city', string='Mother Dead City',domain="[('country_id', '=', mother_dead_country_id)]")
- mother_dead_res_city_id = fields.Many2one('res.city', string='Mother Dead City',domain="[('country_id', '=', mother_dead_country_id)]")
+ # mother_dead_res_city_id = fields.Many2one('res.city', string='Mother Dead City',domain="[('country_id', '=', mother_dead_country_id)]")
+ mother_dead_city = fields.Char(string='Mother Dead City')
mother_location = fields.Selection(
[('with_husband_and_children', _('With Husband And Children')), ('with_children', _('With Children')),
('not_live_with_children', _('Not live with children'))], string='Mother Location')
@@ -431,7 +433,8 @@ class GrantBenefitProfile(models.Model):
}
)
zip = fields.Char('Zip', change_default=True, readonly=False, store=True)
- res_city_id = fields.Many2one('res.city', domain="[('country_city_id', '=', city_id)]")
+ # res_city_id = fields.Many2one('res.city', domain="[('country_city_id', '=', city_id)]")
+ housing_city = fields.Char()
url = fields.Char()
url_html = fields.Html(
sanitize=False,
diff --git a/odex25_ensan/odex_benefit/models/benefit_config.py b/odex25_ensan/odex_benefit/models/benefit_config.py
index 6d9fab580..6baf151e8 100644
--- a/odex25_ensan/odex_benefit/models/benefit_config.py
+++ b/odex25_ensan/odex_benefit/models/benefit_config.py
@@ -635,8 +635,9 @@ class ResDistricts(models.Model):
_name = 'res.districts'
name = fields.Char(string="Name")
- branch_custom_id = fields.Many2one("branch.settings", string="Branch")
meal_card = fields.Boolean(string='Meal Card')
+ city_id = fields.Many2one('res.country.city')
+ branch_custom_id = fields.Many2one("branch.settings", string="Branch", domain="[('city_id', '=', city_id)]")
class VisitsSettings(models.Model):
_name = 'visits.types'
@@ -665,6 +666,8 @@ class BranchSettings(models.Model):
('branches', 'Branches'),
('governorates', 'Governorates')],
string='Branch Type')
+ city_id = fields.Many2one('res.country.city')
+
class RelationSettings(models.Model):
_name = 'relation.settings'
_description = "Relation Settings"
diff --git a/odex25_ensan/odex_benefit/models/housing_config.py b/odex25_ensan/odex_benefit/models/housing_config.py
index b21d6d5be..6a13c9f8f 100644
--- a/odex25_ensan/odex_benefit/models/housing_config.py
+++ b/odex25_ensan/odex_benefit/models/housing_config.py
@@ -16,6 +16,7 @@ class City(models.Model):
state_id = fields.Many2one('res.country.state', string='State')
country_id = fields.Many2one('res.country', string='Country', compute='_load_country_id', store=True, readonly=False)
+ active = fields.Boolean(default=True)
class housing(models.Model):
diff --git a/odex25_ensan/odex_benefit/views/actions_and_menus.xml b/odex25_ensan/odex_benefit/views/actions_and_menus.xml
index f7b6adc87..beb30a806 100644
--- a/odex25_ensan/odex_benefit/views/actions_and_menus.xml
+++ b/odex25_ensan/odex_benefit/views/actions_and_menus.xml
@@ -939,8 +939,8 @@
parent="menu_benefits_config_addresses" action="action_country_state_benefit"/>
-
+