Merge pull request #5765 from expsa/oyo
[IMP] odex_benefit: IMP benefit(
This commit is contained in:
commit
df3c19b1a7
|
|
@ -17689,3 +17689,65 @@ msgstr "حدد الحد الأقصى المسموح به من الأشهر أو
|
||||||
msgid "End Assignment"
|
msgid "End Assignment"
|
||||||
msgstr "انهاء التكليف"
|
msgstr "انهاء التكليف"
|
||||||
|
|
||||||
|
#. module: odex_benefit
|
||||||
|
#: code:addons/odex_benefit/models/benefit.py:0
|
||||||
|
#, python-format
|
||||||
|
msgid ""
|
||||||
|
"You can only archive the family if its status is: Refused, Final Suspension,"
|
||||||
|
" or Blacklisted."
|
||||||
|
msgstr "يمكنك أرشفة الأسرة فقط إذا كانت حالتها: مرفوضة، اعتماد الإيقاف النهائي، أو مدرجة في القائمة المحظورة."
|
||||||
|
|
||||||
|
#. module: odex_benefit
|
||||||
|
#: code:addons/odex_benefit/models/service_request.py:0
|
||||||
|
#, python-format
|
||||||
|
msgid ""
|
||||||
|
"You cannot request 'buy_home' service because there is an existing "
|
||||||
|
"'complete_building_house' service request."
|
||||||
|
msgstr "لا يمكنك طلب خدمة 'شراء منزل' لأنه يوجد طلب خدمة 'إكمال بناء منزل'."
|
||||||
|
|
||||||
|
#. module: odex_benefit
|
||||||
|
#: code:addons/odex_benefit/models/service_request.py:0
|
||||||
|
#, python-format
|
||||||
|
msgid ""
|
||||||
|
"You cannot request 'complete_building_house' service because there is an "
|
||||||
|
"existing 'buy_home' service request."
|
||||||
|
msgstr "لا يمكنك طلب خدمة 'إكمال بناء منزل' لأنه يوجد طلب خدمة 'شراء منزل'."
|
||||||
|
|
||||||
|
#. module: odex_benefit
|
||||||
|
#: model:ir.model.fields,field_description:odex_benefit.field_grant_benefit__mother_expenses_ids
|
||||||
|
msgid "Mother Commitments / Expenses"
|
||||||
|
msgstr "الالتزامات الأم"
|
||||||
|
|
||||||
|
#. module: odex_benefit
|
||||||
|
#: model:ir.model.fields,field_description:odex_benefit.field_grant_benefit__mother_net_income
|
||||||
|
msgid "Mother Net Income"
|
||||||
|
msgstr "صافي دخل الأم"
|
||||||
|
|
||||||
|
#. module: odex_benefit
|
||||||
|
#: model:ir.model.fields,help:odex_benefit.field_grant_benefit__mother_net_income
|
||||||
|
msgid ""
|
||||||
|
"Mother gross income minus her deducted expenses and monthly debt "
|
||||||
|
"installments"
|
||||||
|
msgstr "دخل الأم الإجمالي مطروحًا منه مصروفاتها المخصومة وأقساط ديونها الشهرية"
|
||||||
|
|
||||||
|
#. module: odex_benefit
|
||||||
|
#: model:ir.model.fields,field_description:odex_benefit.field_grant_benefit__mother_debits_ids
|
||||||
|
#: model_terms:ir.ui.view,arch_db:odex_benefit.grant_benefit_form
|
||||||
|
msgid "Mother Debts"
|
||||||
|
msgstr "ديون الأم"
|
||||||
|
|
||||||
|
#. module: odex_benefit
|
||||||
|
#: model:ir.model.fields,field_description:odex_benefit.field_expenses_line__mother_benefit_id
|
||||||
|
#: model:ir.model.fields,field_description:odex_benefit.field_family_debits__mother_benefit_id
|
||||||
|
msgid "Mother Benefit"
|
||||||
|
msgstr "المستفيد الأم"
|
||||||
|
|
||||||
|
#. module: odex_benefit
|
||||||
|
#: model_terms:ir.ui.view,arch_db:odex_benefit.grant_benefit_form
|
||||||
|
msgid "Mother Expenses"
|
||||||
|
msgstr "التزامات الأم"
|
||||||
|
|
||||||
|
#. module: odex_benefit
|
||||||
|
#: model_terms:ir.ui.view,arch_db:odex_benefit.grant_benefit_form
|
||||||
|
msgid "Deduct from Mother Income"
|
||||||
|
msgstr "يتم الخصم من دخل الأم"
|
||||||
|
|
@ -736,9 +736,9 @@ class GrantBenefitProfile(models.Model):
|
||||||
def _prevent_archive_unless_allowed(self):
|
def _prevent_archive_unless_allowed(self):
|
||||||
for rec in self:
|
for rec in self:
|
||||||
if not rec.active and rec.state not in ['refused', 'suspended_second_approve', 'black_list']:
|
if not rec.active and rec.state not in ['refused', 'suspended_second_approve', 'black_list']:
|
||||||
raise ValidationError(
|
raise ValidationError(_(
|
||||||
"You can only archive the family if its status is: Refused, Final Suspension, or Blacklisted."
|
"You can only archive the family if its status is: Refused, Final Suspension, or Blacklisted."
|
||||||
)
|
))
|
||||||
|
|
||||||
@api.depends('rent_amount','property_type','benefit_member_count', 'branch_custom_id.branch_type')
|
@api.depends('rent_amount','property_type','benefit_member_count', 'branch_custom_id.branch_type')
|
||||||
def _compute_estimated_rent_amount(self):
|
def _compute_estimated_rent_amount(self):
|
||||||
|
|
|
||||||
|
|
@ -890,7 +890,7 @@
|
||||||
<page string="Mother Debts" attrs="{'invisible':[('is_mother_work','=',False)]}">
|
<page string="Mother Debts" attrs="{'invisible':[('is_mother_work','=',False)]}">
|
||||||
<field name="mother_debits_ids" context="{'default_state': 'accepted'}"
|
<field name="mother_debits_ids" context="{'default_state': 'accepted'}"
|
||||||
attrs="{'readonly':[('state','not in',['draft','new','complete_info'])]}">
|
attrs="{'readonly':[('state','not in',['draft','new','complete_info'])]}">
|
||||||
<form string="Family Loans">
|
<form>
|
||||||
<sheet>
|
<sheet>
|
||||||
<group>
|
<group>
|
||||||
<group>
|
<group>
|
||||||
|
|
@ -915,7 +915,7 @@
|
||||||
<field name="loan_reason"
|
<field name="loan_reason"
|
||||||
options="{'no_create': True, 'no_create_edit': True,'no_quick_create': True, 'no_open': True}"/>
|
options="{'no_create': True, 'no_create_edit': True,'no_quick_create': True, 'no_open': True}"/>
|
||||||
<field name="description"/>
|
<field name="description"/>
|
||||||
<field name="benefit_id" invisible="1"/>
|
<field name="mother_benefit_id" invisible="1"/>
|
||||||
<field name="loan_start_date"/>
|
<field name="loan_start_date"/>
|
||||||
<field name="loan_end_date"/>
|
<field name="loan_end_date"/>
|
||||||
<field name="deduct_from_family_income" string="Deduct from Mother Income"
|
<field name="deduct_from_family_income" string="Deduct from Mother Income"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue