empowerment_management menues
This commit is contained in:
parent
86e27e245f
commit
753c72cb2f
|
|
@ -27,6 +27,28 @@ msgstr "المؤهلات العلمية"
|
|||
msgid "Qualification Specification"
|
||||
msgstr "تخصص المؤهل"
|
||||
|
||||
#. module: odex25_empowermentmanagement
|
||||
#: model:ir.model.fields,field_description:odex25_empowermentmanagement.field_qualification_specification_req__name
|
||||
msgid "Name"
|
||||
msgstr "الاسم"
|
||||
|
||||
#. module: odex25_empowermentmanagement
|
||||
#: model:ir.model.fields,field_description:odex25_empowermentmanagement.field_qualification_specification_req__type
|
||||
msgid "Type"
|
||||
msgstr "النوع"
|
||||
|
||||
|
||||
|
||||
#. module: odex25_empowermentmanagement
|
||||
#: model:ir.model.fields.selection,name:odex25_empowermentmanagement.selection__empowerment_qualification_specification_req__type__qualification
|
||||
msgid "Qualification"
|
||||
msgstr "مؤهل"
|
||||
|
||||
#. module: odex25_empowermentmanagement
|
||||
#: model:ir.model.fields.selection,name:odex25_empowermentmanagement.selection__qualification_specification_req__type__certificate
|
||||
msgid "Certificate"
|
||||
msgstr "شهادة"
|
||||
|
||||
#. module: odex25_empowermentmanagement
|
||||
#: model:ir.model,name:odex25_empowermentmanagement.model_hr_qualification_name_req
|
||||
msgid "HR Qualification Name"
|
||||
|
|
|
|||
|
|
@ -67,8 +67,8 @@ class EmpowermentRequest(models.Model):
|
|||
|
||||
# create model
|
||||
|
||||
# training_course_id = fields.Many2one('training.course', string='دورة التأهيل')
|
||||
# training_entity_id = fields.Many2one('training.entity', string='جهة التدريب')
|
||||
training_course_id = fields.Many2one('empowerment.qualification.course', string='دورة التأهيل')
|
||||
training_entity_id = fields.Many2one('empowerment.training.entity', string='جهة التدريب')
|
||||
|
||||
training_intercession_type = fields.Selection([
|
||||
('new_acceptance', 'قبول جديد'),
|
||||
|
|
@ -79,11 +79,12 @@ class EmpowermentRequest(models.Model):
|
|||
], string="نوع شفاعة التدريب")
|
||||
|
||||
# تمويل
|
||||
# project_funding_type_id = fields.Many2one('project.funding.type', string='نوع تمويل المشروع')
|
||||
project_funding_type_id = fields.Many2one('project.funding.type', string='نوع تمويل المشروع')
|
||||
sponsor_id = fields.Many2one('takaful.sponsor', string='اسم الكافل')
|
||||
sponsor_mobile = fields.Char(related='sponsor_id.mobile', readonly=True)
|
||||
# sponsor_id.id_number
|
||||
# commint
|
||||
# sponsor_identity = fields.Char(related='sponsor_id.identity_number', readonly=True)
|
||||
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)
|
||||
|
|
@ -92,8 +93,9 @@ class EmpowermentRequest(models.Model):
|
|||
|
||||
# جهة الاستلام
|
||||
request_receiver_id = fields.Many2one('res.partner', string='الشخص المرسل اليه الطلب',
|
||||
domain="[('is_empowerment_receiver', '=', True)]"
|
||||
)
|
||||
# domain="[('is_empowerment_receiver', '=', True)]"
|
||||
|
||||
|
||||
description = fields.Text(string='الشرح', )
|
||||
|
||||
|
|
|
|||
|
|
@ -87,24 +87,7 @@ class HrDepartment(models.Model):
|
|||
)
|
||||
|
||||
|
||||
# class EmpowermentEducationEntity(models.Model):
|
||||
# _name = 'empowerment.education.entity'
|
||||
# _description = 'الجهات التعليمية'
|
||||
#
|
||||
# name = fields.Char(string='اسم الجهة', required=True)
|
||||
# entity_type = fields.Selection(
|
||||
# [('university', 'جامعة'), ('college', 'كلية'),
|
||||
# ('institute', 'معهد'), ('school', 'مدرسة')],
|
||||
# string='نوع الجهة', required=True
|
||||
# )
|
||||
# study_specialization = fields.Selection(
|
||||
# [('bachelor', 'بكالريوس'), ('diploma', 'دبلوم')],
|
||||
# string='تخصص الدراسة', required=True
|
||||
# )
|
||||
# specialization_id = fields.Many2one(
|
||||
# 'empowerment.study.specialization', string='تخصص الدراسة',
|
||||
# domain="[('type', '=', study_specialization)]",
|
||||
# )
|
||||
|
||||
|
||||
class EmpowermentEducationEntity(models.Model):
|
||||
_name = 'empowerment.education.entity'
|
||||
|
|
@ -141,17 +124,7 @@ class EmpowermentEducationEntity(models.Model):
|
|||
# Reset specialization_id when entity_type changes
|
||||
# self.specialization_id = False
|
||||
|
||||
# class StudySpecialization(models.Model):
|
||||
# _name = 'empowerment.study.specialization'
|
||||
# _description = 'تخصص الدراسة'
|
||||
#
|
||||
# type = fields.Selection([
|
||||
# ('bachelor', 'بكالريوس'),
|
||||
# ('diploma', 'دبلوم')
|
||||
# ], string='تخصص الدراسة', required=True)
|
||||
#
|
||||
# universities_colleges = fields.Char(string='الجامعات / الكليات')
|
||||
# institutes_schools = fields.Char(string='اسم المعهد / المدرسة')
|
||||
|
||||
|
||||
class StudySpecialization(models.Model):
|
||||
_name = 'empowerment.study.specialization'
|
||||
|
|
@ -165,3 +138,21 @@ class StudySpecialization(models.Model):
|
|||
universities_colleges = fields.Char(string='Universities / Colleges')
|
||||
institutes_schools = fields.Char(string='Institute / School Name')
|
||||
|
||||
class EmpowermentQualificationCourse(models.Model):
|
||||
_name = 'empowerment.qualification.course'
|
||||
_description = 'Qualification Course'
|
||||
|
||||
name = fields.Char(string='اسم الجهة', required=True)
|
||||
|
||||
class EmpowermentTrainingEntity(models.Model):
|
||||
_name = 'empowerment.training.entity'
|
||||
_description = 'جهات التدريب'
|
||||
|
||||
name = fields.Char(string='اسم الجهة', required=True)
|
||||
|
||||
class EmpowermentProjectFundingType(models.Model):
|
||||
_name = 'empowerment.project.funding.type'
|
||||
_description = 'نوع تمويل المشاريع'
|
||||
|
||||
name = fields.Char(string='اسم الجهة', required=True)
|
||||
|
||||
|
|
|
|||
|
|
@ -8,3 +8,6 @@ access_hr_qualification_name_req,access_hr_qualification_name_req,model_hr_quali
|
|||
access_hr_employee_history_req,access_hr_employee_history_req,model_hr_employee_history_req,,1,1,1,1
|
||||
access_qualification_specification_req,access_qualification_specification_req,model_qualification_specification_req,,1,1,1,1
|
||||
access_hr_qualification_req,access_hr_qualification_req,model_hr_qualification_req,,1,1,1,1
|
||||
access_empowerment_qualification_cours,access_empowerment_qualification_cours,model_empowerment_qualification_course,,1,1,1,1
|
||||
access_empowerment_training_entity,access_empowerment_training_entity,model_empowerment_training_entity,,1,1,1,1
|
||||
access_empowerment_project_funding_type,access_empowerment_project_funding_type,model_empowerment_project_funding_type,,1,1,1,1
|
||||
|
|
|
|||
|
|
|
@ -62,9 +62,9 @@
|
|||
'bachelor_intercession','diploma_intercession'])]}">
|
||||
|
||||
<field name="study_specialization"
|
||||
/>
|
||||
/>
|
||||
<field name="university_id" attrs="{'invisible': [('study_specialization', '!=', 'bachelor')]}"
|
||||
/>
|
||||
/>
|
||||
<field name="institute_id" attrs="{'invisible': [('study_specialization', '!=', 'diploma')]}
|
||||
" />
|
||||
<field name="intercession_type" />
|
||||
|
|
@ -75,17 +75,17 @@
|
|||
<group string="بيانات تدريبية" attrs="{'invisible': [('service_type', 'not in', ['training_service','training_intercession'])]}">
|
||||
<field name="training_type" />
|
||||
<!-- commint-->
|
||||
<!-- <field name="training_course_id" required="1" context="{'default_name': ''}"/>-->
|
||||
<!-- <field name="training_entity_id" required="1" context="{'default_name': ''}"/>-->
|
||||
<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')]}"/>
|
||||
</group>
|
||||
|
||||
<group string="بيانات تمويل" attrs="{'invisible': [('service_type', 'not in', ['funding_service','project_funding_intercession'])]}">
|
||||
<!-- <field name="project_funding_type_id" required="1" context="{'default_name': ''}"/>-->
|
||||
<field name="project_funding_type_id" attrs="{'invisible': [('service_type', '!=', 'funding_service')]}"/>
|
||||
<field name="sponsor_id" domain="[('branch_id', '=', branch_id)]"/>
|
||||
<field name="sponsor_mobile" readonly="1"/>
|
||||
<!-- commmint-->
|
||||
<!-- <field name="sponsor_identity" readonly="1"/>-->
|
||||
<field name="sponsor_identity" readonly="1"/>
|
||||
<field name="sponsor_email" readonly="1"/>
|
||||
<!-- <field name="sponsor_communication_method" readonly="1"/>-->
|
||||
<field name="finance_request_entity_id" context="{'default_name': ''}" attrs="{'invisible': [('service_type', '!=', 'project_funding_intercession')]}"/>
|
||||
|
|
@ -111,22 +111,22 @@
|
|||
|
||||
<page string="الدورات التدريبية">
|
||||
<field name="employment_history_ids" >
|
||||
<tree>
|
||||
<field name="name" />
|
||||
<field name="position" />
|
||||
<field name="salary" />
|
||||
<field name="date_from" required="True"/>
|
||||
<field name="date_to" required="True"/>
|
||||
<field name="country" required="True"/>
|
||||
</tree>
|
||||
</field>
|
||||
<tree>
|
||||
<field name="name" />
|
||||
<field name="position" />
|
||||
<field name="salary" />
|
||||
<field name="date_from" required="True"/>
|
||||
<field name="date_to" required="True"/>
|
||||
<field name="country" required="True"/>
|
||||
</tree>
|
||||
</field>
|
||||
</page>
|
||||
<page string=" الخبرات السابقة">
|
||||
<field name="qualifiction_id"
|
||||
<field name="qualifiction_id"
|
||||
editable="bottom">
|
||||
<tree editable="bottom">
|
||||
<field name="uni_name"/>
|
||||
<!-- <field name="col_name"/>-->
|
||||
<!-- <field name="col_name"/>-->
|
||||
<field name="qualification_id" />
|
||||
<field name="qualification_specification_id"
|
||||
context="{'default_type': 'qualification'}"/>
|
||||
|
|
@ -154,7 +154,7 @@
|
|||
<field name="relationn" class="oe_inline" nolabel="1"
|
||||
attrs="{'readonly':[('parent.state','not in',['draft','new','complete_info','edit_info'])]}"
|
||||
options='{"no_open": True,"no_create_edit": True}'
|
||||
/>
|
||||
/>
|
||||
<field name="relation" class="oe_inline" nolabel="1" invisible="1"/>
|
||||
</div>
|
||||
</group>
|
||||
|
|
@ -333,23 +333,23 @@
|
|||
</record>
|
||||
|
||||
<record id="view_empowerment_request_search" model="ir.ui.view">
|
||||
<field name="name">empowerment.request.search</field>
|
||||
<field name="model">empowerment.request</field>
|
||||
<field name="arch" type="xml">
|
||||
<search string="بحث طلبات التمكين">
|
||||
<!-- Search fields -->
|
||||
<field name="name" string="رقم الطلب"/>
|
||||
<field name="familye_id" string="المستفيد" options="{'no_create': True}"/>
|
||||
<field name="sms_phone" string="رقم الجوال"/>
|
||||
<field name="identity_number" string="رقم الهوية"/>
|
||||
<field name="name">empowerment.request.search</field>
|
||||
<field name="model">empowerment.request</field>
|
||||
<field name="arch" type="xml">
|
||||
<search string="بحث طلبات التمكين">
|
||||
<!-- Search fields -->
|
||||
<field name="name" string="رقم الطلب"/>
|
||||
<field name="familye_id" string="المستفيد" options="{'no_create': True}"/>
|
||||
<field name="sms_phone" string="رقم الجوال"/>
|
||||
<field name="identity_number" string="رقم الهوية"/>
|
||||
|
||||
<!-- Group by / Aggregation filters -->
|
||||
<filter string="نوع الخدمة" name="group_by_service_type" context="{'group_by':'service_type'}"/>
|
||||
<filter string="بند الخدمة" name="group_by_service_id" context="{'group_by':'service_id'}"/>
|
||||
<filter string="الحالة" name="group_by_state" context="{'group_by':'state'}"/>
|
||||
</search>
|
||||
</field>
|
||||
</record>
|
||||
<!-- Group by / Aggregation filters -->
|
||||
<filter string="نوع الخدمة" name="group_by_service_type" context="{'group_by':'service_type'}"/>
|
||||
<filter string="بند الخدمة" name="group_by_service_id" context="{'group_by':'service_id'}"/>
|
||||
<filter string="الحالة" name="group_by_state" context="{'group_by':'state'}"/>
|
||||
</search>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
||||
|
||||
|
|
@ -362,22 +362,22 @@
|
|||
|
||||
|
||||
<record id="view_empowerment_return_reason_wizard_form" model="ir.ui.view">
|
||||
<field name="name">empowerment.return.reason.wizard.form</field>
|
||||
<field name="model">empowerment.return.reason.wizard</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="سبب الإرجاع">
|
||||
<sheet>
|
||||
<group>
|
||||
<field name="reason" />
|
||||
</group>
|
||||
<footer>
|
||||
<button string="حفظ" type="object" name="action_return" class="btn-primary"/>
|
||||
<button string="إلغاء" class="btn-secondary" special="cancel"/>
|
||||
</footer>
|
||||
</sheet>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
<field name="name">empowerment.return.reason.wizard.form</field>
|
||||
<field name="model">empowerment.return.reason.wizard</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="سبب الإرجاع">
|
||||
<sheet>
|
||||
<group>
|
||||
<field name="reason" />
|
||||
</group>
|
||||
<footer>
|
||||
<button string="حفظ" type="object" name="action_return" class="btn-primary"/>
|
||||
<button string="إلغاء" class="btn-secondary" special="cancel"/>
|
||||
</footer>
|
||||
</sheet>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<menuitem id="menu_empowerment_requests" name="طلبات التمكين"
|
||||
parent="odex25_empowermentmanagement.menu_empowerment_root" action="action_empowerment_request"/>
|
||||
|
|
|
|||
|
|
@ -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" string="مرتبط بقسم"/>
|
||||
<field name="hr_department_id" readonly="1" string="القسم المرتبط" />
|
||||
<field name="manager_id" readonly="1" string="القسم المرتبط" />
|
||||
</group>
|
||||
|
||||
</xpath>
|
||||
|
|
@ -57,7 +57,7 @@
|
|||
<field name="name"/>
|
||||
<field name="entity_type"/>
|
||||
<field name="specialization_id"/>
|
||||
<!-- <field name="study_specialization"/>-->
|
||||
<!-- <field name="study_specialization"/>-->
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
|
|
@ -70,24 +70,24 @@
|
|||
</record>
|
||||
|
||||
<record id="view_study_specialization_form" model="ir.ui.view">
|
||||
<field name="name">empowerment.study.specialization.form</field>
|
||||
<field name="model">empowerment.study.specialization</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="تخصص الدراسة">
|
||||
<sheet>
|
||||
<group>
|
||||
<field name="type"/>
|
||||
<field name="universities_colleges"
|
||||
attrs="{'invisible': [('type', '!=', 'bachelor')]}"
|
||||
string="الجامعات / الكليات"/>
|
||||
<field name="institutes_schools"
|
||||
attrs="{'invisible': [('type', '!=', 'diploma')]}"
|
||||
string="اسم المعهد / المدرسة"/>
|
||||
</group>
|
||||
</sheet>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
<field name="name">empowerment.study.specialization.form</field>
|
||||
<field name="model">empowerment.study.specialization</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="تخصص الدراسة">
|
||||
<sheet>
|
||||
<group>
|
||||
<field name="type"/>
|
||||
<field name="universities_colleges"
|
||||
attrs="{'invisible': [('type', '!=', 'bachelor')]}"
|
||||
string="الجامعات / الكليات"/>
|
||||
<field name="institutes_schools"
|
||||
attrs="{'invisible': [('type', '!=', 'diploma')]}"
|
||||
string="اسم المعهد / المدرسة"/>
|
||||
</group>
|
||||
</sheet>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="action_study_specialization" model="ir.actions.act_window">
|
||||
<field name="name">تخصص الدراسة</field>
|
||||
|
|
@ -96,6 +96,101 @@
|
|||
</record>
|
||||
|
||||
|
||||
<record id="view_qualification_course_tree" model="ir.ui.view">
|
||||
<field name="name">empowerment.qualification.course.tree</field>
|
||||
<field name="model">empowerment.qualification.course</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree>
|
||||
<field name="name"/>
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- Form View -->
|
||||
<record id="view_qualification_course_form" model="ir.ui.view">
|
||||
<field name="name">empowerment.qualification.course.form</field>
|
||||
<field name="model">empowerment.qualification.course</field>
|
||||
<field name="arch" type="xml">
|
||||
<form>
|
||||
<sheet>
|
||||
<group>
|
||||
<field name="name"/>
|
||||
</group>
|
||||
</sheet>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- Action -->
|
||||
<record id="action_qualification_course" model="ir.actions.act_window">
|
||||
<field name="name">دورات التأهيل</field>
|
||||
<field name="res_model">empowerment.qualification.course</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
</record>
|
||||
|
||||
<!-- Training Entity Views -->
|
||||
<record id="view_empowerment_training_entity_tree" model="ir.ui.view">
|
||||
<field name="name">empowerment.training.entity.tree</field>
|
||||
<field name="model">empowerment.training.entity</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree>
|
||||
<field name="name"/>
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_empowerment_training_entity_form" model="ir.ui.view">
|
||||
<field name="name">empowerment.training.entity.form</field>
|
||||
<field name="model">empowerment.training.entity</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="جهات التدريب">
|
||||
<sheet>
|
||||
<group>
|
||||
<field name="name"/>
|
||||
</group>
|
||||
</sheet>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="action_empowerment_training_entity" model="ir.actions.act_window">
|
||||
<field name="name">جهات التدريب</field>
|
||||
<field name="res_model">empowerment.training.entity</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
</record>
|
||||
|
||||
<record id="view_empowerment_project_funding_type_tree" model="ir.ui.view">
|
||||
<field name="name">empowerment.project.funding.type.tree</field>
|
||||
<field name="model">empowerment.project.funding.type</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree>
|
||||
<field name="name"/>
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_empowerment_project_funding_type_form" model="ir.ui.view">
|
||||
<field name="name">empowerment.project.funding.type.form</field>
|
||||
<field name="model">empowerment.project.funding.type</field>
|
||||
<field name="arch" type="xml">
|
||||
<form>
|
||||
<sheet>
|
||||
<group>
|
||||
<field name="name"/>
|
||||
</group>
|
||||
</sheet>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="action_empowerment_project_funding_type" model="ir.actions.act_window">
|
||||
<field name="name">أنواع تمويل المشاريع</field>
|
||||
<field name="res_model">empowerment.project.funding.type</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
</record>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Menu -->
|
||||
|
|
@ -108,5 +203,8 @@
|
|||
|
||||
<menuitem id="menu_education_entities_action" name="الجهات التعليمية" parent="menu_education_entities" action="action_empowerment_education_entity" sequence="10"/>
|
||||
<menuitem id="menu_education_sp_action" name="تخصص الدراسة" parent="menu_education_entities" action="action_study_specialization" sequence="11"/>
|
||||
<menuitem id="menu_action_qualification_course" name="دورات التأهيل" parent="menu_education_entities" action="action_qualification_course" sequence="13"/>
|
||||
<menuitem id="menu_action_empowerment_training_entity" name="جهات التدريب" parent="menu_education_entities" action="action_empowerment_training_entity" sequence="14"/>
|
||||
<menuitem id="menu_action_empowerment_project_funding_type" name="أنواع تمويل المشاريع" parent="menu_education_entities" action="action_empowerment_project_funding_type" sequence="15"/>
|
||||
|
||||
</odoo>
|
||||
|
|
|
|||
Loading…
Reference in New Issue