IMP benefit
This commit is contained in:
parent
bca4c2a031
commit
78fe815e40
|
|
@ -11354,16 +11354,14 @@ msgstr "رقم الجوال {} موجود بالفعل في أسرة بكود {}
|
|||
#, python-format
|
||||
msgid ""
|
||||
"The son/daughter's age is supposed to be less than the father's age by %s"
|
||||
msgstr ""
|
||||
"عمر الابن/الابنة مفترض أن يكون أقل من عمر الأب بـ %s سنوات"
|
||||
msgstr "عمر الابن/الابنة مفترض أن يكون أقل من عمر الأب بـ %s سنوات"
|
||||
|
||||
#. module: odex_benefit
|
||||
#: code:addons/odex_benefit/models/family_members.py:0
|
||||
#, python-format
|
||||
msgid ""
|
||||
"The son/daughter's age is supposed to be less than the mother's age by %s"
|
||||
msgstr ""
|
||||
"عمر الابن/الابنة مفترض أن يكون أقل من عمر الأم بـ %s سنوات"
|
||||
" age is supposed to be less than the mother's age by %s"
|
||||
msgsThe son/daughter'str "عمر الابن/الابنة مفترض أن يكون أقل من عمر الأم بـ %s سنوات"
|
||||
|
||||
#. module: odex_benefit
|
||||
#: model:ir.model.fields,help:odex_benefit.field_benefits_representative__membership_amount
|
||||
|
|
|
|||
|
|
@ -271,11 +271,11 @@ class FamilyMemberProfile(models.Model):
|
|||
if rec.relationn.relation_type in ['son', 'daughter'] and rec.relationn.age_difference > 0:
|
||||
if rec.benefit_id.father_age and rec.benefit_id.father_age - rec.age < rec.relationn.age_difference:
|
||||
raise ValidationError(
|
||||
_("The son/daughter's age is supposed to be less than the father's age by %s" % rec.relationn.age_difference)
|
||||
_("The son/daughter's age is supposed to be less than the father's age by %s") % rec.relationn.age_difference
|
||||
)
|
||||
if rec.benefit_id.mother_age and rec.benefit_id.mother_age - rec.age < rec.relationn.age_difference:
|
||||
raise ValidationError(
|
||||
_("The son/daughter's age is supposed to be less than the mother's age by %s" % rec.relationn.age_difference)
|
||||
_("The son/daughter's age is supposed to be less than the mother's age by %s") % rec.relationn.age_difference
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -311,7 +311,7 @@
|
|||
options="{'no_create': True, 'no_create_edit': True}"
|
||||
groups="!odex_benefit.group_benefit_manager"/>
|
||||
<field name="district_id"
|
||||
readonly="1"
|
||||
attrs="{'readonly':[('state', 'not in', ['draft', 'new', 'complete_info'])]}"
|
||||
options="{'no_create': True, 'no_create_edit': True}"
|
||||
groups="!odex_benefit.group_benefit_manager"/>
|
||||
<field name="member_income" widget="monetary"
|
||||
|
|
@ -1031,7 +1031,7 @@
|
|||
<!-- <field name="res_city_id" string="Res City"
|
||||
options="{'no_create': True, 'no_create_edit': True}"/> -->
|
||||
<!-- <field name="housing_city"/> -->
|
||||
<field name="district_id" readonly="1" force_save="1"
|
||||
<field name="district_id" force_save="1"
|
||||
options="{'no_create': True, 'no_create_edit': True}"
|
||||
attrs="{'readonly':[('state', 'not in', ['draft', 'new', 'complete_info'])]}"
|
||||
groups="odex_benefit.group_benefit_manager"/>
|
||||
|
|
@ -1524,10 +1524,6 @@
|
|||
<field name="branch_custom_id" readonly="1"/>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//field[@name='district_id']" position="replace">
|
||||
<field name="district_id" readonly="1"/>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//field[@name='father_dead_country_id']" position="replace">
|
||||
<field name="father_dead_country_id" required="1"
|
||||
options="{'no_create': True, 'no_create_edit': True,'no_quick_create': True, 'no_open': True}"
|
||||
|
|
|
|||
Loading…
Reference in New Issue