[IMP] odex_benefit: IMP benefit
This commit is contained in:
parent
2a61bd5c8c
commit
2723917f67
|
|
@ -18547,3 +18547,56 @@ msgstr "استثناء أفراد الأسرة"
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Non-Saudi mothers and fathers cannot register."
|
msgid "Non-Saudi mothers and fathers cannot register."
|
||||||
msgstr "الأمهات والآباء غير السعوديين."
|
msgstr "الأمهات والآباء غير السعوديين."
|
||||||
|
|
||||||
|
#. module: odex_benefit
|
||||||
|
#: model:ir.model.fields,field_description:odex_benefit.field_family_member__full_age
|
||||||
|
msgid "Full Age"
|
||||||
|
msgstr "العمر"
|
||||||
|
|
||||||
|
#. module: odex_benefit
|
||||||
|
#: code:addons/odex_benefit/models/family_members.py:0
|
||||||
|
#, python-format
|
||||||
|
msgid "%s years"
|
||||||
|
msgstr "%s سنة"
|
||||||
|
|
||||||
|
#. module: odex_benefit
|
||||||
|
#: code:addons/odex_benefit/models/family_members.py:0
|
||||||
|
#, python-format
|
||||||
|
msgid "0 years, 0 months, 0 days"
|
||||||
|
msgstr "0 سنة، 0 شهر، 0 يوم"
|
||||||
|
|
||||||
|
#. module: odex_benefit
|
||||||
|
#: code:addons/odex_benefit/models/family_members.py:0
|
||||||
|
#, python-format
|
||||||
|
msgid "%s months"
|
||||||
|
msgstr "%s شهر"
|
||||||
|
|
||||||
|
#. module: odex_benefit
|
||||||
|
#: code:addons/odex_benefit/models/family_members.py:0
|
||||||
|
#, python-format
|
||||||
|
msgid "%s day(s)"
|
||||||
|
msgstr "%s يوم"
|
||||||
|
|
||||||
|
#. module: odex_benefit
|
||||||
|
#: code:addons/odex_benefit/models/family_members.py:0
|
||||||
|
#, python-format
|
||||||
|
msgid "%s days"
|
||||||
|
msgstr "%s يوم"
|
||||||
|
|
||||||
|
#. module: odex_benefit
|
||||||
|
#: code:addons/odex_benefit/models/family_members.py:0
|
||||||
|
#, python-format
|
||||||
|
msgid "%s month(s)"
|
||||||
|
msgstr "%s شهر"
|
||||||
|
|
||||||
|
#. module: odex_benefit
|
||||||
|
#: code:addons/odex_benefit/models/family_members.py:0
|
||||||
|
#, python-format
|
||||||
|
msgid "%s year(s)"
|
||||||
|
msgstr "%s سنة"
|
||||||
|
|
||||||
|
#. module: odex_benefit
|
||||||
|
#: code:addons/odex_benefit/models/family_members.py:0
|
||||||
|
#, python-format
|
||||||
|
msgid "0 days"
|
||||||
|
msgstr "0 يوم"
|
||||||
|
|
@ -703,20 +703,20 @@ class FamilyMemberProfile(models.Model):
|
||||||
_("Over %s years old and not enrolled in a scientific or vocational specialization.")
|
_("Over %s years old and not enrolled in a scientific or vocational specialization.")
|
||||||
% exceptional_age_scientific_specialty
|
% exceptional_age_scientific_specialty
|
||||||
)
|
)
|
||||||
if rec.is_work:
|
if rec.is_work:
|
||||||
if rec.member_income > max_income_for_benefit:
|
if rec.member_income > max_income_for_benefit:
|
||||||
rec.member_status = 'non_benefit'
|
rec.member_status = 'non_benefit'
|
||||||
reasons.append(_("He is employed with a salary exceeding %s.") % max_income_for_benefit)
|
reasons.append(_("He is employed with a salary exceeding %s.") % max_income_for_benefit)
|
||||||
if not rec.is_married and rec.education_status in ['illiterate']:
|
if not rec.is_married and rec.education_status in ['illiterate']:
|
||||||
rec.member_status = 'non_benefit'
|
rec.member_status = 'non_benefit'
|
||||||
reasons.append(
|
reasons.append(
|
||||||
_("He is over %s years of age and not enrolled in an educational institution.") % male_benefit_age)
|
_("He is over %s years of age and not enrolled in an educational institution.") % male_benefit_age)
|
||||||
if not rec.is_married and rec.education_status in [
|
if not rec.is_married and rec.education_status in [
|
||||||
'educated'] and rec.case_study in [
|
'educated'] and rec.case_study in [
|
||||||
'graduate', 'intermittent']:
|
'graduate', 'intermittent']:
|
||||||
rec.member_status = 'non_benefit'
|
rec.member_status = 'non_benefit'
|
||||||
reasons.append(
|
reasons.append(
|
||||||
_("He is over %s years of age and has completed his education.") % male_benefit_age)
|
_("He is over %s years of age and has completed his education.") % male_benefit_age)
|
||||||
if not rec.member_location_conf.is_benefit:
|
if not rec.member_location_conf.is_benefit:
|
||||||
rec.member_status = 'non_benefit'
|
rec.member_status = 'non_benefit'
|
||||||
reasons.append(_("He does not reside with his family."))
|
reasons.append(_("He does not reside with his family."))
|
||||||
|
|
|
||||||
|
|
@ -150,7 +150,7 @@
|
||||||
<field name="exit_benefit_date" readonly="1" force_save="1"/>
|
<field name="exit_benefit_date" readonly="1" force_save="1"/>
|
||||||
</group>
|
</group>
|
||||||
<group>
|
<group>
|
||||||
<field name="age" readonly="1" required="1" force_save="1"/>
|
<field name="age" invisible="1" readonly="1" required="1" force_save="1"/>
|
||||||
<field name="full_age" force_save="1"/>
|
<field name="full_age" force_save="1"/>
|
||||||
<field name="age_status"
|
<field name="age_status"
|
||||||
attrs="{'invisible':[('relationn_type','not in',('son','daughter'))]}"/>
|
attrs="{'invisible':[('relationn_type','not in',('son','daughter'))]}"/>
|
||||||
|
|
@ -366,7 +366,7 @@
|
||||||
<field name="last_education_levels" optional="hide"/>
|
<field name="last_education_levels" optional="hide"/>
|
||||||
<field name="case_study" optional="show"/>
|
<field name="case_study" optional="show"/>
|
||||||
<field name="is_excluded_suspension"/>
|
<field name="is_excluded_suspension"/>
|
||||||
<field name="age"/>
|
<field name="age" optional="hide"/>
|
||||||
<field name="full_age"/>
|
<field name="full_age"/>
|
||||||
<field name="benefit_id" optional="hide"/>
|
<field name="benefit_id" optional="hide"/>
|
||||||
<field name="branch_custom_id"/>
|
<field name="branch_custom_id"/>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue