[IMP] odex_benefit: IMP benefit

This commit is contained in:
younes 2026-01-12 09:00:04 +01:00
parent 6cd91fe548
commit ac6b017b22
2 changed files with 25 additions and 27 deletions

View File

@ -18373,12 +18373,6 @@ msgid ""
"vocational specialization." "vocational specialization."
msgstr "أكبر من %s سنة وغير منتظم بتخصص علمي أو مهني." msgstr "أكبر من %s سنة وغير منتظم بتخصص علمي أو مهني."
#. module: odex_benefit
#: code:addons/odex_benefit/models/family_members.py:0
#, python-format
msgid "She has exceeded the maximum age limit of %s years."
msgstr "لقد تجاوزت الحد الأقصى للعمر وهو %s سنة."
#. module: odex_benefit #. module: odex_benefit
#: code:addons/odex_benefit/models/benefit.py:0 #: code:addons/odex_benefit/models/benefit.py:0
#, python-format #, python-format
@ -18431,13 +18425,6 @@ msgstr "مبلغ الدعم"
msgid "Exception Second Approve" msgid "Exception Second Approve"
msgstr "موافقة مدير الفرع للاستثناء" msgstr "موافقة مدير الفرع للاستثناء"
#. module: odex_benefit
#: code:addons/odex_benefit/models/family_members.py:0
#, python-format
msgid ""
"She has a physical or intellectual disability but is over %s years of age."
msgstr "لديها إعاقة جسدية أو عقلية ولكنها تجاوزت %s سنة من العمر."
#. module: odex_benefit #. module: odex_benefit
#: code:addons/odex_benefit/models/payment_order.py:0 #: code:addons/odex_benefit/models/payment_order.py:0
#: model_terms:ir.ui.view,arch_db:odex_benefit.payment_orders_form #: model_terms:ir.ui.view,arch_db:odex_benefit.payment_orders_form
@ -18507,3 +18494,16 @@ msgstr "الإجراء غير مسموح: الأسرة لديها %s فرد مس
#: model:ir.model.fields.selection,name:odex_benefit.selection__education_status__education_entity__governmental_paid #: model:ir.model.fields.selection,name:odex_benefit.selection__education_status__education_entity__governmental_paid
msgid "Governmental/Paid" msgid "Governmental/Paid"
msgstr "حكومي /مقابل مادي" msgstr "حكومي /مقابل مادي"
#. module: odex_benefit
#: code:addons/odex_benefit/models/family_members.py:0
#: code:addons/odex_benefit/models/family_members.py:0
#, python-format
msgid "She is over %s years of age and has no underage brothers."
msgstr "تجاوزت عمر %s وليس لديها اخوة قصر"
#. module: odex_benefit
#: code:addons/odex_benefit/models/family_members.py:0
#, python-format
msgid "She is over %s years of age."
msgstr "تجاوزت عمر %s"

View File

@ -687,19 +687,17 @@ class FamilyMemberProfile(models.Model):
rec.member_status = 'non_benefit' rec.member_status = 'non_benefit'
reasons.append(_("She is employed and not enrolled in an educational institution.")) reasons.append(_("She is employed and not enrolled in an educational institution."))
if age_exceeded: if age_exceeded:
if rec.age <= exceptional_age_has_disabilities and rec.disabilities_attachment_ids and rec.minor_siblings: if rec.age > minor_siblings_age and not rec.minor_siblings:
rec.member_status = 'benefit'
else:
if rec.age > exceptional_age_has_disabilities and rec.disabilities_attachment_ids:
rec.member_status = 'non_benefit' rec.member_status = 'non_benefit'
reasons.append( reasons.append(
_("She has a physical or intellectual disability but is over %s years of age.") _("She is over %s years of age and has no underage brothers.") % female_benefit_age)
% exceptional_age_has_disabilities elif not rec.minor_siblings:
)
else:
rec.member_status = 'non_benefit' rec.member_status = 'non_benefit'
reasons.append( reasons.append(
_("She has exceeded the maximum age limit of %s years.") % female_benefit_age) _("She is over %s years of age and has no underage brothers.") % female_benefit_age)
elif rec.minor_siblings and rec.age > minor_siblings_age:
rec.member_status = 'non_benefit'
reasons.append(_("She is over %s years of age.") % minor_siblings_age)
if rec.is_work and rec.member_income > max_income_for_benefit and rec.education_status in [ if rec.is_work and rec.member_income > max_income_for_benefit and rec.education_status in [
'educated'] and current_education_status_id.case_study == 'continuous': 'educated'] and current_education_status_id.case_study == 'continuous':
rec.member_status = 'non_benefit' rec.member_status = 'non_benefit'