translat empowerment_management

This commit is contained in:
blackbelts 2025-07-30 13:10:36 +03:00
parent 753c72cb2f
commit add5127ed0
5 changed files with 423 additions and 99 deletions

View File

@ -251,5 +251,324 @@ msgstr "دبلوم"
msgid "Study Specialization"
msgstr "تخصص الدراسة"
#. module: odex25_empowermentmanagement
#: model:ir.model,name:odex25_empowermentmanagement.model_empowerment_qualification_course
msgid "Qualification Course"
msgstr "دورات التأهيل"
#. module: odex25_empowermentmanagement
#: model:ir.model.fields,field_description:odex25_empowermentmanagement.field_empowerment_qualification_course__name
msgid "Entity Name"
msgstr "اسم الجهة"
#. module: odex25_empowermentmanagement
#: model:ir.model,name:odex25_empowermentmanagement.model_empowerment_training_entity
msgid "Training Entities"
msgstr "جهات التدريب"
#. module: odex25_empowermentmanagement
#: model:ir.model.fields,field_description:odex25_empowermentmanagement.field_empowerment_training_entity__name
msgid "Entity Name"
msgstr "اسم الجهة"
#. module: odex25_empowermentmanagement
#: model:ir.model,name:odex25_empowermentmanagement.model_empowerment_project_funding_type
msgid "Project Funding Type"
msgstr "نوع تمويل المشاريع"
#. module: odex25_empowermentmanagement
#: model:ir.model.fields,field_description:odex25_empowermentmanagement.field_empowerment_project_funding_type__name
msgid "Entity Name"
msgstr " اسم الجهة"
#. module: odex25_empowermentmanagement
#: model:ir.model.fields,field_description:odex25_empowermentmanagement.field_services_settings__linked_to_department
msgid "Linked to Department"
msgstr "مرتبط بقسم"
#. module: odex25_empowermentmanagement
#: model:ir.model.fields,help:odex25_empowermentmanagement.field_services_settings__linked_to_department
msgid "Link the service to an HR department"
msgstr "ربط الخدمة بقسم في الموارد البشرية"
#. module: odex25_empowermentmanagement
#: model:ir.model.fields,field_description:odex25_empowermentmanagement.field_services_settings__hr_department_id
msgid "Linked Department"
msgstr "القسم المرتبط"
#. module: odex25_empowermentmanagement
#: model:ir.model.fields,field_description:odex25_empowermentmanagement.field_services_settings__manager_id
msgid "Manager"
msgstr "المدير"
#. module: odex25_empowermentmanagement
#: model:ir.model,name:odex25_empowermentmanagement.model_res_partner
msgid "Empowerment Beneficiary"
msgstr "شريك تمكين"
#. module: odex25_empowermentmanagement
#: model:ir.model,name:odex25_empowermentmanagement.model_empowerment_return_reason_wizard
msgid "Return Reason"
msgstr "سبب الإرجاع"
#. module: odex25_empowermentmanagement
#: model:ir.model.fields,field_description:odex25_empowermentmanagement.field_empowerment_return_reason_wizard__reason
msgid "Reason"
msgstr "السبب"
#. module: odex25_empowermentmanagement
#: model:ir.model.fields,field_description:odex25_empowermentmanagement.field_empowerment_request__name
msgid "Request Number"
msgstr "رقم الطلب"
#. module: odex25_empowermentmanagement
#: model:ir.model.fields,field_description:odex25_empowermentmanagement.field_empowerment_request__request_date
msgid "Request Date"
msgstr "تاريخ الطلب"
#. module: odex25_empowermentmanagement
#: model:ir.model.fields,field_description:odex25_empowermentmanagement.field_empowerment_request__creator_id
msgid "Creator"
msgstr "المُنشئ"
#. module: odex25_empowermentmanagement
#: model:ir.model.fields,field_description:odex25_empowermentmanagement.field_empowerment_request__date_from
msgid "Date From"
msgstr "التاريخ من"
#. module: odex25_empowermentmanagement
#: model:ir.model.fields,field_description:odex25_empowermentmanagement.field_empowerment_request__date_to
msgid "Date To"
msgstr "التاريخ الى"
#. module: odex25_empowermentmanagement
#: model:ir.model.fields,field_description:odex25_empowermentmanagement.field_empowerment_request__branch_id
msgid "Branch"
msgstr "الفرع"
#. module: odex25_empowermentmanagement
#: model:ir.model.fields,field_description:odex25_empowermentmanagement.field_empowerment_request__familye_id
msgid "Family"
msgstr "الأسرة"
#. module: odex25_empowermentmanagement
#: model:ir.model.fields,field_description:odex25_empowermentmanagement.field_empowerment_request__member_ids
msgid "Family Member"
msgstr "عضو الأسرة"
#. module: odex25_empowermentmanagement
#: model:ir.model.fields,field_description:odex25_empowermentmanagement.field_empowerment_request__benefit_category_id
msgid "Family Category"
msgstr "فئة الاسرة"
#. module: odex25_empowermentmanagement
#: model:ir.model.fields,field_description:odex25_empowermentmanagement.field_empowerment_request__relationship
msgid "Beneficiary Relationship"
msgstr "صفة المستفيد"
#. module: odex25_empowermentmanagement
#: model:ir.model.fields,field_description:odex25_empowermentmanagement.field_empowerment_request__identity_number
msgid "ID Number"
msgstr "رقم الهوية"
#. module: odex25_empowermentmanagement
#: model:ir.model.fields,field_description:odex25_empowermentmanagement.field_empowerment_request__sms_phone
msgid "Mobile Number"
msgstr "رقم الجوال"
#. module: odex25_empowermentmanagement
#: model:ir.model.fields,field_description:odex25_empowermentmanagement.field_empowerment_request__email
msgid "Email"
msgstr "البريد الالكترونى"
#. module: odex25_empowermentmanagement
#: model:ir.model.fields,field_description:odex25_empowermentmanagement.field_empowerment_request__nationality
msgid "Nationality"
msgstr "الجنسية"
#. module: odex25_empowermentmanagement
#: model:ir.model.fields,field_description:odex25_empowermentmanagement.field_empowerment_request__education_status
msgid "Education Status"
msgstr "الحالة التعليمية"
#. module: odex25_empowermentmanagement
#: model:ir.model.fields,field_description:odex25_empowermentmanagement.field_empowerment_request__has_car
msgid "Family Owns a Car?"
msgstr "الأسرة لديها سيارة؟"
#. module: odex25_empowermentmanagement
#: model:ir.model.fields,field_description:odex25_empowermentmanagement.field_empowerment_request__health_status
msgid "Health Status"
msgstr "الحالة الصحية"
#. module: odex25_empowermentmanagement
#: model:ir.model.fields,field_description:odex25_empowermentmanagement.field_empowerment_request__service_id
msgid "Service Item"
msgstr "بند الخدمة"
#. module: odex25_empowermentmanagement
#: model:ir.model.fields,field_description:odex25_empowermentmanagement.field_empowerment_request__service_type
msgid "Service Type"
msgstr "نوع الخدمة"
#. module: odex25_empowermentmanagement
#: model:ir.model.fields,field_description:odex25_empowermentmanagement.field_empowerment_request__service_item
msgid "Service Element"
msgstr "عنصر الخدمة"
#. module: odex25_empowermentmanagement
#: model:ir.model.fields,field_description:odex25_empowermentmanagement.field_empowerment_request__study_specialization
msgid "Study Specialization"
msgstr "تخصص الدراسة"
#. module: odex25_empowermentmanagement
#: model:ir.model.fields,field_description:odex25_empowermentmanagement.field_empowerment_request__university_id
msgid "University / College Name"
msgstr "اسم الجامعة / الكلية"
#. module: odex25_empowermentmanagement
#: model:ir.model.fields,field_description:odex25_empowermentmanagement.field_empowerment_request__institute_id
msgid "Institute / School Name"
msgstr "اسم المعهد / المدرسة"
#. module: odex25_empowermentmanagement
#: model:ir.model.fields,field_description:odex25_empowermentmanagement.field_empowerment_request__intercession_type
msgid "Intercession Type"
msgstr "نوع الشفاعة"
#. module: odex25_empowermentmanagement
#: model:ir.model.fields,field_description:odex25_empowermentmanagement.field_empowerment_request__request_entity_id
msgid "Requesting Entity"
msgstr "اسم جهة الطلب"
#. module: odex25_empowermentmanagement
#: model:ir.model.fields,field_description:odex25_empowermentmanagement.field_empowerment_request__training_type
msgid "Training Type"
msgstr "نوع التدريب"
#. module: odex25_empowermentmanagement
#: model:ir.model.fields,field_description:odex25_empowermentmanagement.field_empowerment_request__training_course_id
msgid "Qualification Course"
msgstr "دورة التأهيل"
#. module: odex25_empowermentmanagement
#: model:ir.model.fields,field_description:odex25_empowermentmanagement.field_empowerment_request__training_entity_id
msgid "Training Entity"
msgstr "جهة التدريب"
#. module: odex25_empowermentmanagement
#: model:ir.model.fields,field_description:odex25_empowermentmanagement.field_empowerment_request__training_intercession_type
msgid "Training Intercession Type"
msgstr "نوع شفاعة التدريب"
#. module: odex25_empowermentmanagement
#: model:ir.model.fields,field_description:odex25_empowermentmanagement.field_empowerment_request__project_funding_type_id
msgid "Project Funding Type"
msgstr "نوع تمويل المشروع"
#. module: odex25_empowermentmanagement
#: model:ir.model.fields,field_description:odex25_empowermentmanagement.field_empowerment_request__sponsor_id
msgid "Sponsor Name"
msgstr "اسم الكافل"
#. module: odex25_empowermentmanagement
#: model:ir.model.fields,field_description:odex25_empowermentmanagement.field_empowerment_request__sponsor_mobile
msgid "Sponsor Mobile"
msgstr "جوال الكافل"
#. module: odex25_empowermentmanagement
#: model:ir.model.fields,field_description:odex25_empowermentmanagement.field_empowerment_request__sponsor_identity
msgid "Sponsor Identity"
msgstr "هوية الكافل"
#. module: odex25_empowermentmanagement
#: model:ir.model.fields,field_description:odex25_empowermentmanagement.field_empowerment_request__sponsor_email
msgid "Sponsor Email"
msgstr "بريد الكافل"
#. module: odex25_empowermentmanagement
#: model:ir.model.fields,field_description:odex25_empowermentmanagement.field_empowerment_request__finance_request_entity_id
msgid "Finance Request Entity"
msgstr "جهة الطلب المالية"
#. module: odex25_empowermentmanagement
#: model:ir.model.fields,field_description:odex25_empowermentmanagement.field_empowerment_request__request_receiver_id
msgid "Request Receiver"
msgstr "الشخص المرسل اليه الطلب"
#. module: odex25_empowermentmanagement
#: model:ir.model.fields,field_description:odex25_empowermentmanagement.field_empowerment_request__description
msgid "Description"
msgstr "الشرح"
#. module: odex25_empowermentmanagement
#: model:ir.model.fields,field_description:odex25_empowermentmanagement.field_empowerment_request__state
msgid "Status"
msgstr "الحالة"
#. module: odex25_empowermentmanagement
#: model:ir.model.fields.selection,name:odex25_empowermentmanagement.selection__empowerment_request__state__draft
msgid "Draft"
msgstr "مسودة"
#. module: odex25_empowermentmanagement
#: model:ir.model.fields.selection,name:odex25_empowermentmanagement.selection__empowerment_request__state__social_worker
msgid "Social Worker (Awaiting Execution)"
msgstr "اخصائى اجتماعى (بإنتظار تنفيذ الطلب)"
#. module: odex25_empowermentmanagement
#: model:ir.model.fields.selection,name:odex25_empowermentmanagement.selection__empowerment_request__state__head_of_department
msgid "Head of Department"
msgstr "رئيس القسم"
#. module: odex25_empowermentmanagement
#: model:ir.model.fields.selection,name:odex25_empowermentmanagement.selection__empowerment_request__state__branch_manager
msgid "Branch Manager"
msgstr "مدير الفرع"
#. module: odex25_empowermentmanagement
#: model:ir.model.fields.selection,name:odex25_empowermentmanagement.selection__empowerment_request__state__finance
msgid "Finance Department"
msgstr "ادارة المالية"
#. module: odex25_empowermentmanagement
#: model:ir.model.fields.selection,name:odex25_empowermentmanagement.selection__empowerment_request__state__approved
msgid "Approved"
msgstr "معتمد"
#. module: odex25_empowermentmanagement
#: model:ir.model.fields.selection,name:odex25_empowermentmanagement.selection__empowerment_request__state__rejected
msgid "Rejected"
msgstr "مرفوض"
#. module: odex25_empowermentmanagement
#: model:ir.model.fields,field_description:odex25_empowermentmanagement.field_empowerment_request__reject_reason
msgid "Rejection/Return Reason"
msgstr "ccسبب الرفض/الارجاع"
#. module: odex25_empowermentmanagement
#: model:ir.model.fields,field_description:odex25_empowermentmanagement.field_empowerment_request__return_reason
msgid "Return Reason"
msgstr "سبب الارجاع"
#. module: odex25_empowermentmanagement
#: model:ir.model.fields,field_description:odex25_empowermentmanagement.field_empowerment_request__employment_history_ids
msgid "Employment History"
msgstr "الخبرة العملية"
#. module: odex25_empowermentmanagement
#: model:ir.model.fields,field_description:odex25_empowermentmanagement.field_empowerment_request__qualifiction_id
msgid "Qualifications"
msgstr "المؤهلات"

View File

@ -6,116 +6,118 @@ from datetime import datetime
class EmpowermentRequest(models.Model):
_name = 'empowerment.request'
_description = 'طلب تمكين'
_description = 'Empowerment Request'
_inherit = ['mail.thread', 'mail.activity.mixin']
name = fields.Char(string='رقم الطلب', readonly=True, default='New')
request_date = fields.Datetime(string='تاريخ الطلب', readonly=True, default=fields.Datetime.now)
creator_id = fields.Many2one('res.users', string='المُنشئ', default=lambda self: self.env.user, readonly=True)
date_from = fields.Datetime(string='التاريخ من')
date_to = fields.Datetime(string='التاريخ الى')
branch_id = fields.Many2one("branch.settings", string='الفرع', domain="[('name','=','الرياض')]")
name = fields.Char(string='Request Number', readonly=True, default='New')
request_date = fields.Datetime(string='Request Date', readonly=True, default=fields.Datetime.now)
creator_id = fields.Many2one('res.users', string='Creator', default=lambda self: self.env.user, readonly=True)
date_from = fields.Datetime(string='Date From')
date_to = fields.Datetime(string='Date To')
branch_id = fields.Many2one("branch.settings", string='Branch', domain="[('name','=','Riyadh')]")
# أسرة المستفيد
familye_id = fields.Many2one('grant.benefit', string='الأسرة')
# Beneficiary Family
familye_id = fields.Many2one('grant.benefit', string='Family')
member_ids = fields.One2many(
'family.member',
compute='_compute_family_members',
string='عضو الأسرة',
compute='_compute_family_members',
string='Family Member',
)
benefit_category_id = fields.Many2one(related='familye_id.benefit_category_id', string='فئة الاسرة' ,readonly=True)
relationship = fields.Char(string='صفة المستفيد', readonly=True)
benefit_category_id = fields.Many2one(related='familye_id.benefit_category_id', string='Family Category', readonly=True)
relationship = fields.Char(string='Beneficiary Relationship', readonly=True)
identity_number = fields.Char(related='familye_id.id_number',string='رقم الهوية', readonly=True)
sms_phone = fields.Char(related='familye_id.sms_phone',string='رقم الجوال', readonly=True)
email = fields.Char(related='familye_id.email',string='البريد الالكترونى', readonly=True)
nationality = fields.Many2one(relates='familye_id.nationality_id',string='الجنسية', readonly=True)
education_status = fields.Selection(related='familye_id.education_status',string='الحالة التعليمية', readonly=True)
has_car = fields.Boolean(related='familye_id.has_car',string='الأسرة لديها سيارة؟', readonly=True)
health_status = fields.Selection(related='familye_id.health_status', string='الحالة الصحية')
identity_number = fields.Char(related='familye_id.id_number', string='ID Number', readonly=True)
sms_phone = fields.Char(related='familye_id.sms_phone', string='Mobile Number', readonly=True)
email = fields.Char(related='familye_id.email', string='Email', readonly=True)
nationality = fields.Many2one(relates='familye_id.nationality_id', string='Nationality', readonly=True)
education_status = fields.Selection(related='familye_id.education_status', string='Education Status', readonly=True)
has_car = fields.Boolean(related='familye_id.has_car', string='Family Owns a Car?', readonly=True)
health_status = fields.Selection(related='familye_id.health_status', string='Health Status')
# معلومات الخدمة
service_id = fields.Many2one('services.settings', string='بند الخدمة')
# Service Info
service_id = fields.Many2one('services.settings', string='Service Item')
service_type = fields.Selection(related='service_id.service_type', store=True)
service_item = fields.Char(string="عنصر الخدمة")
service_item = fields.Char(string="Service Element")
# تعليمية
# Education Info
study_specialization = fields.Selection([
('bachelor', 'بكالريوس'),
('diploma', 'دبلوم')
], string='تخصص الدراسة')
('bachelor', 'Bachelor'),
('diploma', 'Diploma')
], string='Study Specialization')
university_id = fields.Many2one('empowerment.education.entity', string='اسم الجامعة / الكلية', domain="[('study_specialization','=','bachelor')]")
institute_id = fields.Many2one('empowerment.education.entity', string='اسم المعهد / المدرسة', domain="[('study_specialization','=','diploma')]")
university_id = fields.Many2one('empowerment.education.entity', string='University / College Name', domain="[('study_specialization','=','bachelor')]")
institute_id = fields.Many2one('empowerment.education.entity', string='Institute / School Name', domain="[('study_specialization','=','diploma')]")
intercession_type = fields.Selection([
('transfer', 'تحويل'),
('move', 'نقل'),
('discount', 'خصم'),
('exemption', 'اعفاء'),
], string='نوع الشفاعة')
('transfer', 'Transfer'),
('move', 'Move'),
('discount', 'Discount'),
('exemption', 'Exemption'),
], string='Intercession Type')
request_entity_id = fields.Many2one('empowerment.education.entity', string='اسم جهة الطلب')
request_entity_id = fields.Many2one('empowerment.education.entity', string='Requesting Entity')
# تدريبية
# Training Info
training_type = fields.Selection([
('skill', 'مهاري'),
('entrepreneurship', 'ريادي'),
('professional', 'مهني')
], string='نوع التدريب')
('skill', 'Skill-based'),
('entrepreneurship', 'Entrepreneurship'),
('professional', 'Professional')
], string='Training Type')
# create model
training_course_id = fields.Many2one('empowerment.qualification.course', string='دورة التأهيل')
training_entity_id = fields.Many2one('empowerment.training.entity', string='جهة التدريب')
training_course_id = fields.Many2one('empowerment.qualification.course', string='Qualification Course')
training_entity_id = fields.Many2one('empowerment.training.entity', string='Training Entity')
training_intercession_type = fields.Selection([
('new_acceptance', 'قبول جديد'),
('transfer', 'تحويل'),
('relocation', 'نقل'),
('discount', 'خصم'),
('exemption', 'اعفاء')
], string="نوع شفاعة التدريب")
('new_acceptance', 'New Acceptance'),
('transfer', 'Transfer'),
('relocation', 'Relocation'),
('discount', 'Discount'),
('exemption', 'Exemption')
], string="Training Intercession Type")
# تمويل
project_funding_type_id = fields.Many2one('project.funding.type', string='نوع تمويل المشروع')
sponsor_id = fields.Many2one('takaful.sponsor', string='اسم الكافل')
# Funding Info
project_funding_type_id = fields.Many2one('project.funding.type', string='Project Funding Type')
sponsor_id = fields.Many2one('takaful.sponsor', string='Sponsor Name')
sponsor_mobile = fields.Char(related='sponsor_id.mobile', readonly=True)
# sponsor_id.id_number
# commint
sponsor_identity = fields.Char(related='sponsor_id.id_number', readonly=True)
sponsor_email = fields.Char(related='sponsor_id.email', readonly=True)
# sponsor_communication_method = fields.Selection(related='sponsor_id.communication_method', readonly=True)
finance_request_entity_id = fields.Many2one('education.entity', string="Finance Request Entity")
finance_request_entity_id = fields.Many2one('education.entity', string="جهة الطلب")
# جهة الاستلام
request_receiver_id = fields.Many2one('res.partner', string='الشخص المرسل اليه الطلب',
domain="[('is_empowerment_receiver', '=', True)]"
)
description = fields.Text(string='الشرح', )
# حالة الطلب
# Receiver
request_receiver_id = fields.Many2one(
'res.partner',
string='Request Receiver',
domain="[('is_empowerment_receiver', '=', True)]"
)
description = fields.Text(string='Description')
# Request State
state = fields.Selection([
('draft', 'مسودة'),
('social_worker', 'اخصائى اجتماعى (بإنتظار تنفيذ الطلب)'),
('head_of_department', 'رئيس القسم'),
('branch_manager', 'مدير الفرع'),
('finance', 'ادارة المالية'),
('approved', 'معتمد'),
('rejected', 'مرفوض'),
], default='draft', string='الحالة', tracking=True)
('draft', 'Draft'),
('social_worker', 'Social Worker (Awaiting Execution)'),
('head_of_department', 'Head of Department'),
('branch_manager', 'Branch Manager'),
('finance', 'Finance Department'),
('approved', 'Approved'),
('rejected', 'Rejected'),
], default='draft', string='Status', tracking=True)
reject_reason = fields.Text(string='Rejection/Return Reason')
return_reason = fields.Text(string='Return Reason')
employment_history_ids = fields.One2many(
comodel_name="hr.employee.history.req",
inverse_name="employement_history"
)
qualifiction_id = fields.One2many(
"hr.qualification.req",
"qualification_relation_name",
string="Qualifications"
)
reject_reason = fields.Text(string='سبب الرفض/الارجاع')
return_reason = fields.Text(string='سبب الارجاع')
employment_history_ids = fields.One2many(comodel_name="hr.employee.history.req", inverse_name="employement_history")
qualifiction_id = fields.One2many("hr.qualification.req", "qualification_relation_name", string="Qualifications")
@api.model
def create(self, vals):
@ -173,17 +175,15 @@ class EmpowermentRequest(models.Model):
class ResPartner(models.Model):
_inherit = 'res.partner'
is_empowerment_receiver = fields.Boolean(string='شريك تمكين')
is_empowerment_receiver = fields.Boolean(string='Empowerment Beneficiary')
class EmpowermentReturnReasonWizard(models.TransientModel):
_name = 'empowerment.return.reason.wizard'
_description = 'سبب الإرجاع'
_description = 'Return Reason'
request_id = fields.Many2one('empowerment.request', string='الطلب')
reason = fields.Text(string='السبب', required=True)
request_id = fields.Many2one('empowerment.request', string='Request')
reason = fields.Text(string='Reason', required=True)
def action_return(self):
self.ensure_one()

View File

@ -4,12 +4,15 @@ from odoo.exceptions import ValidationError
class ServicesSettings(models.Model):
_inherit = 'services.settings' # Inherit existing model
linked_to_department = fields.Boolean(string='مرتبط بقسم', help='ربط الخدمة بقسم في الموارد البشرية')
linked_to_department = fields.Boolean(
string='Linked to Department',
help='Link the service to an HR department'
)
hr_department_id = fields.Many2one(
'hr.department', string='القسم المرتبط', readonly=True
'hr.department', string='Linked Department', readonly=True
)
manager_id = fields.Many2one(
'hr.employee', string='المدير', readonly=True
'hr.employee', string='Manager',
)
service_type = fields.Selection(selection_add=[
@ -142,17 +145,20 @@ class EmpowermentQualificationCourse(models.Model):
_name = 'empowerment.qualification.course'
_description = 'Qualification Course'
name = fields.Char(string='اسم الجهة', required=True)
name = fields.Char(string='Entity Name', required=True)
class EmpowermentTrainingEntity(models.Model):
_name = 'empowerment.training.entity'
_description = 'جهات التدريب'
_description = 'Training Entities'
name = fields.Char(string='Entity Name', required=True)
name = fields.Char(string='اسم الجهة', required=True)
class EmpowermentProjectFundingType(models.Model):
_name = 'empowerment.project.funding.type'
_description = 'نوع تمويل المشاريع'
_description = 'Project Funding Type'
name = fields.Char(string='Entity Name', required=True)
name = fields.Char(string='اسم الجهة', required=True)

View File

@ -74,7 +74,6 @@
<group string="بيانات تدريبية" attrs="{'invisible': [('service_type', 'not in', ['training_service','training_intercession'])]}">
<field name="training_type" />
<!-- commint-->
<field name="training_course_id" context="{'default_name': ''}"/>
<field name="training_entity_id" attrs="{'invisible': [('service_type', '!=', 'training_intercession')]}"/>
<field name="training_intercession_type" attrs="{'invisible': [('service_type', '!=', 'training_intercession')]}"/>

View File

@ -8,9 +8,9 @@
<xpath expr="//sheet/group[1]" position="after">
<group>
<field name="linked_to_department" string="مرتبط بقسم"/>
<field name="hr_department_id" readonly="1" string="القسم المرتبط" />
<field name="manager_id" readonly="1" string="القسم المرتبط" />
<field name="linked_to_department" />
<field name="hr_department_id" readonly="1" />
<field name="manager_id" />
</group>
</xpath>
@ -79,10 +79,10 @@
<field name="type"/>
<field name="universities_colleges"
attrs="{'invisible': [('type', '!=', 'bachelor')]}"
string="الجامعات / الكليات"/>
/>
<field name="institutes_schools"
attrs="{'invisible': [('type', '!=', 'diploma')]}"
string="اسم المعهد / المدرسة"/>
/>
</group>
</sheet>
</form>