This commit is contained in:
Bakry 2024-12-29 16:29:21 +03:00
parent eac72cefd7
commit e73d846d42
12 changed files with 248 additions and 322 deletions

View File

@ -490,7 +490,7 @@ msgstr "إخلاء الطرف من البنك"
#: model_terms:ir.ui.view,arch_db:employee_requests.employee_personal_permission_form_view
#, python-format
msgid "HR Approve"
msgstr "تصديق الموارد البشرية"
msgstr "موافقة الموارد البشرية"
#. module: employee_requests
#: code:addons/employee_requests/models/house_allowance_advance.py:0
@ -939,7 +939,7 @@ msgstr "مدير الهيكل الإداري :"
#: model_terms:ir.ui.view,arch_db:employee_requests.employee_overtime_request_form_view
#, python-format
msgid "Department Manager"
msgstr "تصديق مدير الإدارة"
msgstr "موافقة مدير الإدارة"
#. module: employee_requests
#: code:addons/employee_requests/models/employee_department_jobs.py:0
@ -1005,7 +1005,7 @@ msgstr "انتظار الموارد البشرية :"
#: model_terms:ir.ui.view,arch_db:employee_requests.employee_request_effective_form_view
#: model_terms:ir.ui.view,arch_db:employee_requests.employee_other_request_form_view
msgid "Direct Manager Approve"
msgstr "تصديق المدير المباشر"
msgstr "موافقة المدير المباشر"
#. module: employee_requests
#: model:ir.model.fields,field_description:employee_requests.field_hr_clearance_form__direct_mg
@ -1432,6 +1432,12 @@ msgstr ""
msgid "Filename"
msgstr "اسم الملف"
#. module: employee_requests
#: code:addons/employee_requests/models/hr_clearance_form.py:0
#, python-format
msgid "Final Clearance"
msgstr "خروج نهائية"
#. module: employee_requests
#: model_terms:ir.ui.view,arch_db:employee_requests.clearance_report_template
msgid "Finance Control."
@ -1548,7 +1554,7 @@ msgstr "الكفالة"
#: model_terms:ir.ui.view,arch_db:employee_requests.employee_other_request_form_view
#, python-format
msgid "HR Approval"
msgstr "تصديق الموارد البشرية"
msgstr "موافقة الموارد البشرية"
#. module: employee_requests
#: model:ir.model,name:employee_requests.model_hr_certification
@ -1558,12 +1564,13 @@ msgstr ""
#. module: employee_requests
#: model_terms:ir.ui.view,arch_db:employee_requests.employee_request_effective_form_view
msgid "HR M Approve"
msgstr "تصديق الموارد البشرية"
msgstr "موافقة الموارد البشرية"
#. module: employee_requests
#: code:addons/employee_requests/models/employee_department_jobs.py:0
#: code:addons/employee_requests/models/other_request.py:0
#: model_terms:ir.ui.view,arch_db:employee_requests.employee_department_jobs_form_view
#: model:ir.model.fields.selection,name:employee_requests.selection__hr_personal_permission_type__approval_by__hr_manager
#, python-format
msgid "HR Manager"
msgstr "مدير الموارد البشرية"
@ -3401,6 +3408,7 @@ msgid "Submit"
msgstr "إرســـال"
#. module: employee_requests
#:model:ir.model.fields.selection,name:employee_requests.selection__hr_personal_permission_type__approval_by__direct_manager
#: model_terms:ir.ui.view,arch_db:employee_requests.employee_clearance_form_form_view
msgid "Direct Manager"
msgstr "موافقة المدير المباشر"
@ -3626,7 +3634,7 @@ msgstr ""
#: model:ir.model.fields.selection,name:employee_requests.selection__hr_clearance_form__hr_mg__approve
#: model:ir.model.fields.selection,name:employee_requests.selection__hr_clearance_form__it_mg__approve
#: model:ir.model.fields.selection,name:employee_requests.selection__hr_clearance_form__super_mg__approve
msgid "تصديق الموارد البشرية"
msgid "موافقة الموارد البشرية"
msgstr ""
#. module: employee_requests
@ -3922,6 +3930,13 @@ msgstr "لايمكن طلب عمل إضافي للموظف %s بقيمة عمل
msgid "You can not Request Overtime The Employee %s The Overtime Amount Zero"
msgstr "لايمكن طلب عمل إضافي للموظف %s بقيمة عمل إضافي صفر."
#. module: employee_requests
#: code:addons/employee_requests/models/employee_overtime_request.py:0
#, python-format
msgid "Sorry, Cannot Be Request after %s Days From The End Of The Overtime Month"
msgstr "للأسف,لا يمكن طلب العمل الإضافى بعد أكثر من %s يوم من نهاية شهر العمل الأضافي"
#. module: employee_requests
#: model:ir.model.fields,field_description:employee_requests.field_hr_personal_permission_type__approval_by
msgid "Approval By"
@ -3957,11 +3972,3 @@ msgstr "ساعات شهرية"
#, python-format
msgid "Date To must be on the same day as Date From."
msgstr "يجب أن يكون يوم تاريخ البداية هو نفسه يوم تاريخ النهاية."
#. module: employee_requests
#: code:addons/employee_requests/models/employee_overtime_request.py:0
#, python-format
msgid "Sorry, Cannot Be Request after %s Days From The End Of The Overtime Month"
msgstr "للأسف,لا يمكن طلب العمل الإضافى بعد أكثر من %s يوم من نهاية شهر العمل الأضافي"

View File

@ -41,27 +41,6 @@ class HrPersonalPermission(models.Model):
company_id = fields.Many2one('res.company',string="Company", default=lambda self: self.env.user.company_id)
is_branch = fields.Many2one(related='department_id.branch_name', store=True, readonly=True)
time_from = fields.Float(compute='_compute_times')
time_to = fields.Float(compute='_compute_times')
@api.depends('date_from', 'date_to')
def _compute_times(self):
for rec in self:
if rec.date_from:
tf = rec.date_from.time()
rec.time_from = tf.hour + tf.minute / 60
else:
rec.time_from = 0.0
if rec.date_to:
tt = rec.date_to.time()
rec.time_to = tt.hour + tt.minute / 60
else:
rec.time_to = False
# time_permission_from = fields.Float(string="Permission From (24h format)", help="Time in 24-hour format (e.g., 13.5 for 1:30 PM)")
# time_permission_to = fields.Float(string="Permission To (24h format)", help="Time in 24-hour format (e.g., 15.75 for 3:45 PM)")
@ -362,13 +341,13 @@ class HrPersonalPermission(models.Model):
if item.duration > item.permission_number:
raise exceptions.Warning(
_('This Duration not Allowed it must be Less Than or equal Permission Hours in Month'))
for employee_permission in employee_permissions:
for employee_permission in employee_permissions.filtered(lambda r: r.id != self.id):
if employee_permission.date_to and item.date_to:
permission_date = datetime.strptime(str(employee_permission.date_to),
DEFAULT_SERVER_DATETIME_FORMAT).date()
date_to_value = datetime.strptime(str(item.date_to), DEFAULT_SERVER_DATETIME_FORMAT).date()
if permission_date == date_to_value and item.id != employee_permission.id:
if permission_date == date_to_value:
raise exceptions.Warning(
_('Sorry You Have Used All Your Permission In This Day you have one permission per a Day'))
else:
@ -392,7 +371,7 @@ class HrPersonalPermission(models.Model):
# @api.constrains('date_from', 'date_to')
def send(self):
self._get_date_constrains()
#self._get_date_constrains()
self.permission_number_decrement()
self._get_date_constrains2()
self.state = "send"

View File

@ -9,9 +9,9 @@ class EmployeeVacation(models.AbstractModel):
@api.model
def _get_report_values(self, docids, data):
docs = self.env['employee.other.request'].browse(docids)
for record in docs:
'''for record in docs:
if record.state != 'approved':
raise UserError(_("Sorry, you cannot print the report until final approval of the request"))
raise UserError(_("Sorry, you cannot print the report until final approval of the request"))'''
docargs = {
'doc_ids': [],
'doc_model': ['employee.other.request'],

View File

@ -9,9 +9,9 @@ class EmployeeVacation(models.AbstractModel):
@api.model
def _get_report_values(self, docids, data):
docs = self.env['employee.other.request'].browse(docids)
for record in docs:
'''for record in docs:
if record.state != 'approved':
raise UserError(_("Sorry, you cannot print the report until final approval of the request"))
raise UserError(_("Sorry, you cannot print the report until final approval of the request"))'''
docargs = {
'doc_ids': [],
'doc_model': ['employee.other.request'],

View File

@ -9,9 +9,9 @@ class EmployeeVacation(models.AbstractModel):
@api.model
def _get_report_values(self, docids, data):
docs = self.env['employee.other.request'].browse(docids)
for record in docs:
'''for record in docs:
if record.state != 'approved':
raise UserError(_("Sorry, you cannot print the report until final approval of the request"))
raise UserError(_("Sorry, you cannot print the report until final approval of the request"))'''
docargs = {
'doc_ids': [],
'doc_model': ['employee.other.request'],

View File

@ -20,46 +20,41 @@
url("/employee_requests/static/fonts/ce7b5754581057e6f7444e2192850cc8.ttf") format("truetype");
}
#content-table thead tr th{
background-color: rgb(77, 168, 178);
background-color: rgb(20,166,156);
border: 1px solid #222;
vertical-align: middle;
font-weight: bold;
text-align:center;
color: #fff;
padding: 10px 0;
font-size: 14pt;
padding: 8px 0;
font-size: 13pt;
}
#content-table td{
font-family: 'Sakkal Majalla'!important;
}
#content-table thead tr th{
width: 50%;
font-family: 'Sakkal Majalla'!important;
}
#content-table tbody tr td{
border: 1px solid;
vertical-align: middle;
padding: 10px 0;
padding: 8px 0;
text-align: center;
font-size:14pt;
font-size:13pt;
}
#content-table tbody tr td:last-child{
direction: ltr;
background-color: rgb(230, 230, 231);
color: #222;
font-weight: bold;
width: 25%;
width: 32%;
}
#content-table tbody tr td:first-child{
direction: rtl;
background-color: rgb(230, 230, 231);
color: #222;
font-weight: bold;
width: 25%;
width: 32%;
}
</style>
<div class="OutlineElement Rtl SCXW182515882 BCX2">
<h3 style="font-weight:bold;margin-bottom: 40px;text-align:center;font-family: 'Sakkal Majalla'!important;color:rgb(77, 168, 178);font-size: 20pt;margin-top: 0;">
<span>شهادة تعريف</span>
@ -67,23 +62,25 @@
<span>Employment Certificate</span>
</h3>
</div>
<table class="table table-borderless" style="margin-bottom: 10px;font-family: 'Sakkal Majalla'!important;font-size: 14pt; background-size: 35%; background-position: right;background-repeat: no-repeat;">
<table class="table table-borderless"
style="margin-bottom: 20px; font-family: 'Sakkal Majalla'; font-size: 11pt;">
<tr style="border:0;">
<td style="text-align:right;width:50%;padding-left:50px;padding-right: 20px;">
<p style="font-weight: bold;color: #333;margin-bottom: 20px;">
<td style="text-align:right;width:50%;padding-left:10px;padding-right: 8px;">
<p style="font-weight: bold;color: #333;margin-bottom: 5px;">
<span style="border-bottom: 1px solid #333;">مقدم إلى:</span>
<span t-esc="doc.destination.name"/>
</p>
<span>نفيدكم بأن الموظف الموضح هويته أدناه يعمل لدى</span>
<span style="font-weight: bold;"><span t-esc="env.user.sudo().company_id.name"/>-</span>
<span style="font-weight: bold;"><span t-esc="env.user.sudo().company_id.name"/>-
</span>
<span>ولا يزال على رأس العمل حتى تاريخه و أعطيت له هذه الشهادة بناء على</span>
<span>طلبه دون أدنى مسئولية.</span>
</td>
<td style="direction:ltr;text-align:left;border:0;width:50%;padding-right: 50px;padding-left:20px;">
<p style="font-weight: bold;color: #333;margin-bottom: 20px;">
<td style="direction:ltr;text-align:left;border:0;width:50%;padding-right: 10px;padding-left:8px;">
<p style="font-weight: bold;color: #333;margin-bottom: 5px;">
<span style="border-bottom: 1px solid #333;">Addressed To:</span>
<span t-esc="doc.destination.english_name"/>
</p>
<span>This is to certify that Below-mentioned employee is working in</span>
<span style="font-weight: bold;">
@ -91,166 +88,124 @@
-
</span>
<span>This certification</span>
<span>is issued</span>
<span>upon the request of the employee without any obligation</span>
<span>is issued upon the request of the employee without any obligation</span>
</td>
</tr>
</table>
<div style="margin-bottom: 1px;">
<center>
<table id="content-table" border="1" class="Table"
style="margin-right:12%; font-size: 8pt; width: 90%;">
<div class="OutlineElement Rtl SCXW182515882 BCX2">
<div class="TableContainer SCXW182515882 BCX2">
<center>
<table id="content-table" aria-rowcount="12" border="1" class="Table Rtl TableWordWrap SCXW182515882 BCX2" data-tablelook="1184" data-tablestyle="MsoTableGrid" style="margin-right:13%;">
<thead>
<tr>
<th colspan="2">تعريف عمل</th>
<th colspan="2">Certificate of Employment</th>
</tr>
</thead>
<tbody class="SCXW182515882 BCX2">
<tr>
<td>التاريخ</td>
<td colspan="2">
<span t-esc="doc.date"/>
</td>
<td>Date</td>
</tr>
<tr>
<td>رقم الموظف</td>
<td colspan="2">
<span t-esc="doc.employee_id.emp_no"/>
</td>
<td>Emp No.</td>
</tr>
<tr>
<td>اسم الموظف</td>
<td>
<span t-esc="doc.employee_id.name"/>
</td>
<td>
<span t-esc="doc.employee_id.english_name"/>
</td>
<td>Name</td>
</tr>
<tr>
<td>الوظيفة الحالية</td>
<td colspan="2">
<span t-esc="doc.employee_id.job_id.name"/>
</td>
<td>Position</td>
</tr>
<tr>
<td>رقم الهوية</td>
<td colspan="2">
<span t-esc="doc.employee_id.saudi_number.saudi_id or doc.employee_id.iqama_number.iqama_id"/>
</td>
<td>ID No.</td>
</tr>
<tr>
<td>الجنسية</td>
<td colspan="2">
<span t-esc="doc.employee_id.country_id.name"/>
</td>
<td>Nationality</td>
</tr>
<tr>
<td>الراتب الأساسي</td>
<td colspan="2">
<span t-esc="round(doc.employee_id.contract_id.salary,2)"/>
<span>ريال</span>
</td>
<td>Basic Salary</td>
</tr>
<tr>
<td>بدل السكن</td>
<td colspan="2">
<span t-esc="round(doc.employee_id.contract_id.house_allowance_temp,2)"/>
<span>ريال</span>
</td>
<td>Housing Allowance</td>
</tr>
<tr>
<td>بدل النقل</td>
<td colspan="2">
<span t-esc="round(doc.employee_id.contract_id.transport_allowance,2)"/>
<span>ريال</span>
</td>
<td>Transportation Allowance</td>
</tr>
<tr>
<td>الراتب الشهري الإجمالي</td>
<td colspan="2">
<span t-esc="round(doc.employee_id.contract_id.salary + doc.employee_id.contract_id.house_allowance_temp + doc.employee_id.contract_id.transport_allowance,2)"/>
<span>ريال</span>
</td>
<td>Total Salary / month</td>
</tr>
<tr>
<td>تاريخ التعيين</td>
<td colspan="2">
<span t-esc="doc.employee_id.contract_id.hiring_date"/>
</td>
<td>Hire Date</td>
</tr>
</tbody>
</table>
</center>
</div>
<br/>
<!-- todo start -->
<!-- <div class="">-->
<!-- <div style="float:left;margin-left:15px;" class="left">-->
<!-- <span t-field="env.user.sudo().company_id.hr_manager_id.user_id.sign_signature" t-options="{&quot;widget&quot;: &quot;image&quot;,&quot;style&quot;:&quot;width: 90px;height:90px;&quot;}"/>-->
<!-- </div>-->
<!-- <div style="float:right" class="signature right">-->
<!-- <span t-field="env.user.sudo().company_id.hr_manager_id.user_id.sign_initials" t-options="{&quot;widget&quot;: &quot;image&quot;,&quot;style&quot;:&quot;width: 200px;height:70px;&quot;}"/>-->
<!-- </div>-->
<!-- </div>-->
<!-- todo end -->
<h4 style="text-align: center;">
<span>مدير إدارة الموارد البشرية</span>
<br/>
<span>Director of Human Resource</span>
<br/>
<span t-esc="env.user.sudo().company_id.hr_manager_id.name"/>
</h4>
<!-- <div class="column">-->
<!-- <div align="center">-->
<!-- <span t-field="env.user.sudo().company_id.hr_manager_id.user_id.sign_signature"-->
<!-- t-field-options='{"widget": "image","style":"width: 90px;height:90px;"}'/>-->
<!-- </div>-->
<!-- </div>-->
<!-- <br/>-->
<!-- <table class="table table-borderless"-->
<!-- style="border-spacing: 0px;padding:0px;margin:0px;margin-top:115px;font-family:'Sakkal Majalla'!important;font-size:9pt"-->
<!-- dir="rtl">-->
<!-- <tr style="border:0;">-->
<!-- <td style="text-align:right;border:0;width:50%;padding:0px;margin:0px;">-->
<!-- <span>طبع بواسطة :</span>-->
<!-- <span t-esc="user.name"/>-->
<!-- </td>-->
<!-- <td style="text-align:left;border:0;width:50%;padding:0px;margin:0px;direction:ltr">-->
<!-- <span>Printed By :</span>-->
<!-- <span t-esc="user.name"/>-->
<!-- </td>-->
<!-- </tr>-->
<!-- </table>-->
<thead>
<tr>
<th colspan="2">تعريف عمل</th>
<th colspan="2">Certificate of Employment</th>
</tr>
</thead>
<tbody>
<tr>
<td style="width: 25%;">التاريخ</td>
<td colspan="2">
<span t-esc="doc.date"/>
</td>
<td style="width: 25%;">Date</td>
</tr>
<tr>
<td style="width: 25%;">رقم الموظف</td>
<td colspan="2">
<span t-esc="doc.employee_id.emp_no"/>
</td>
<td style="width: 25%;">Emp No.</td>
</tr>
<tr>
<td style="width: 25%;">اسم الموظف</td>
<td>
<span t-esc="doc.employee_id.name"/>
</td>
<td>
<span t-esc="doc.employee_id.english_name"/>
</td>
<td style="width: 25%;">Name</td>
</tr>
<tr>
<td style="width: 25%;">الوظيفة الحالية</td>
<td colspan="2">
<span t-esc="doc.employee_id.job_id.name"/>
</td>
<td style="width: 25%;">Position</td>
</tr>
<tr>
<td style="width: 25%;">رقم الهوية</td>
<td colspan="2">
<span t-esc="doc.employee_id.saudi_number.saudi_id or doc.employee_id.iqama_number.iqama_id"/>
</td>
<td style="width: 25%;">ID No.</td>
</tr>
<tr>
<td style="width: 25%;">الجنسية</td>
<td colspan="2">
<span t-esc="doc.employee_id.country_id.name"/>
</td>
<td style="width: 25%;">Nationality</td>
</tr>
<tr>
<td style="width: 25%;">الراتب الأساسي</td>
<td colspan="2">
<span t-esc="round(doc.employee_id.contract_id.salary,2)"/>
ريال
</td>
<td style="width: 25%;">Basic Salary</td>
</tr>
<tr>
<td style="width: 25%;">بدل السكن</td>
<td colspan="2">
<span t-esc="round(doc.employee_id.contract_id.house_allowance_temp,2)"/>
ريال
</td>
<td style="width: 25%;">Housing Allowance</td>
</tr>
<tr>
<td style="width: 25%;">بدل النقل</td>
<td colspan="2">
<span t-esc="round(doc.employee_id.contract_id.transport_allowance,2)"/>
ريال
</td>
<td style="width: 25%;">Transportation Allowance</td>
</tr>
<tr>
<td style="width: 25%;">الراتب الشهري الإجمالي</td>
<td colspan="2">
<span t-esc="round(doc.employee_id.contract_id.salary + doc.employee_id.contract_id.house_allowance_temp + doc.employee_id.contract_id.transport_allowance,2)"/>
ريال
</td>
<td style="width: 25%;">Total Salary / month</td>
</tr>
<tr>
<td style="width: 25%;">تاريخ التعيين</td>
<td colspan="2">
<span t-esc="doc.employee_id.contract_id.hiring_date"/>
</td>
<td style="width: 25%;">Hire Date</td>
</tr>
</tbody>
</table>
</center>
</div>
<!-- </div>-->
<br/>
<br/>
<br/>
<h4 style="text-align: center; font-size: 12pt;">
<span>مدير إدارة الموارد البشرية</span>
<br/>
<span>Director of Human Resource</span>
<br/>
<span t-esc="env.user.sudo().company_id.hr_manager_id.name"/>
</h4>
</div>
</t>
</t>
</template>

View File

@ -19,7 +19,7 @@
url("/employee_requests/static/fonts/ce7b5754581057e6f7444e2192850cc8.ttf") format("truetype");
}
#content-table thead tr th{
background-color: rgb(77, 168, 178);
background-color: rgb(20,166,156);
border: 1px solid #222;
vertical-align: middle;
font-weight: bold;
@ -38,7 +38,7 @@
#content-table tbody tr td{
border: 1px solid;
vertical-align: middle;
padding: 10px 0;
padding: 9px 0;
text-align: center;
font-size:14pt;
}
@ -65,41 +65,43 @@
<span>Employment Certificate</span>
</h3>
</div>
<table class="table table-borderless" style="margin-bottom: 10px;font-family: 'Sakkal Majalla'!important;font-size: 14pt; background-size: 35%; background-position: right;background-repeat: no-repeat;">
<table class="table table-borderless"
style="margin-bottom: 5px; font-family: 'Sakkal Majalla' !important; font-size: 13pt; background-size: 35%; background-position: right; background-repeat: no-repeat;">
<tr style="border:0;">
<td style="text-align:right;width:50%;padding-left:50px;padding-right: 20px;">
<p style="font-weight: bold;color: #333;margin-bottom: 20px;">
<td style="text-align:right;width:50%;padding-left:10px;padding-right: 10px;">
<p style="font-weight: bold;color: #333;margin-bottom: 5px;">
<span style="border-bottom: 1px solid #333;">مقدم إلى:</span>
<span t-esc="doc.destination.name"/>
</p>
<span>نفيدكم بأن الموظف الموضح هويته أدناه يعمل لدى</span>
<span style="font-weight: bold;"><span t-esc="env.user.sudo().company_id.name"/>-</span>
<span style="font-weight: bold;"><span t-esc="env.user.sudo().company_id.name"/>-
</span>
<span>ولا يزال على رأس العمل حتى تاريخه و أعطيت له هذه الشهادة بناء على</span>
<span>طلبه دون أدنى مسئولية.</span>
</td>
<td style="direction:ltr;text-align:left;border:0;width:50%;padding-right: 50px;padding-left:20px;">
<p style="font-weight: bold;color: #333;margin-bottom: 20px;">
<td style="direction:ltr;text-align:left;border:0;width:50%;padding-right: 10px;padding-left:10px;">
<p style="font-weight: bold;color: #333;margin-bottom: 5px;">
<span style="border-bottom: 1px solid #333;">Addressed To:</span>
<span t-esc="doc.destination.english_name"/>
</p>
<span>This is to certify that Below-mentioned employee is working in</span>
<span style="font-weight: bold;">
<span t-esc="env.user.sudo().company_id.english_name"/>
-
</span>
<span>This certification</span>
<span>is issued</span>
<span>upon the request of the employee without any obligation</span>
<span>This certification is issued upon the request of the employee without any
obligation
</span>
</td>
</tr>
</table>
<br/>
<div class="OutlineElement Rtl SCXW182515882 BCX2">
<div class="TableContainer SCXW182515882 BCX2">
<center>
<table id="content-table" aria-rowcount="12" border="1" class="Table Rtl TableWordWrap SCXW182515882 BCX2" data-tablelook="1184" data-tablestyle="MsoTableGrid" style="margin-right:20%;">
<table id="content-table" aria-rowcount="12" border="1"
class="Table Rtl TableWordWrap SCXW182515882 BCX2"
style="margin-right:10%; font-size: 8pt; width: 90%;">
<thead>
<tr>
<th colspan="2">تعريف عمل</th>
@ -108,72 +110,65 @@
</thead>
<tbody class="SCXW182515882 BCX2">
<tr>
<td>التاريخ</td>
<td style="width: 20%;">التاريخ</td>
<td colspan="2">
<span t-esc="doc.date"/>
</td>
<td>Date</td>
<td style="width: 20%;">Date</td>
</tr>
<tr>
<td>رقم الموظف</td>
<td style="width: 20%;">رقم الموظف</td>
<td colspan="2">
<span t-esc="doc.employee_id.emp_no"/>
</td>
<td>Emp No.</td>
<td style="width: 20%;">Emp No.</td>
</tr>
<tr>
<td>اسم الموظف</td>
<td style="width: 20%;">اسم الموظف</td>
<td>
<span t-esc="doc.employee_id.name"/>
</td>
<td>
<span t-esc="doc.employee_id.english_name"/>
</td>
<td>Name</td>
<td style="width: 20%;">Name</td>
</tr>
<tr>
<td>الوظيفة الحالية</td>
<td style="width: 20%;">الوظيفة الحالية</td>
<td colspan="2">
<span t-esc="doc.employee_id.job_id.name"/>
</td>
<td>Position</td>
<td style="width: 20%;">Position</td>
</tr>
<tr>
<td>رقم الهوية</td>
<td style="width: 20%;">رقم الهوية</td>
<td colspan="2">
<span t-esc="doc.employee_id.saudi_number.saudi_id or doc.employee_id.iqama_number.iqama_id"/>
</td>
<td>ID No.</td>
<td style="width: 20%;">ID No.</td>
</tr>
<tr>
<td>الجنسية</td>
<td style="width: 20%;">الجنسية</td>
<td colspan="2">
<span t-esc="doc.employee_id.country_id.name"/>
</td>
<td>Nationality</td>
<td style="width: 20%;">Nationality</td>
</tr>
<tr>
<td>تاريخ التعيين</td>
<td style="width: 20%;">تاريخ التعيين</td>
<td colspan="2">
<span t-esc="doc.employee_id.contract_id.hiring_date"/>
</td>
<td>Hire Date</td>
<td style="width: 20%;">Hire Date</td>
</tr>
<tr>
<td>الراتب الشهري الإجمالي</td>
<td style="width: 20%;">الراتب الشهري الإجمالي</td>
<td colspan="2">
<span t-esc="round(doc.employee_id.contract_id.total_net,2)"/>
<span>ريال</span>
</td>
<td>Total Salary / month</td>
<td style="width: 20%;">Total Salary / month</td>
</tr>
</tbody>
</table>
</center>
@ -182,22 +177,23 @@
<br/>
<br/>
<br/>
<!-- todo start -->
<!-- <div class="">-->
<!-- <div style="float:left;margin-left:15px;" class="left">-->
<!-- <span t-field="env.user.sudo().company_id.hr_manager_id.user_id.sign_signature" t-options="{&quot;widget&quot;: &quot;image&quot;,&quot;style&quot;:&quot;width: 90px;height:90px;&quot;}"/>-->
<!-- </div>-->
<!-- <div style="float:right" class="signature right">-->
<!-- <span t-field="env.user.sudo().company_id.hr_manager_id.user_id.sign_initials" t-options="{&quot;widget&quot;: &quot;image&quot;,&quot;style&quot;:&quot;width: 200px;height:70px;&quot;}"/>-->
<!-- </div>-->
<!-- </div>-->
<!-- todo end -->
<h4 style="text-align: center;">
<br/>
<!-- todo start -->
<!-- <div class="">-->
<!-- <div style="float:left;margin-left:15px;" class="left">-->
<!-- <span t-field="env.user.sudo().company_id.hr_manager_id.user_id.sign_signature" t-options="{&quot;widget&quot;: &quot;image&quot;,&quot;style&quot;:&quot;width: 90px;height:90px;&quot;}"/>-->
<!-- </div>-->
<!-- <div style="float:right" class="signature right">-->
<!-- <span t-field="env.user.sudo().company_id.hr_manager_id.user_id.sign_initials" t-options="{&quot;widget&quot;: &quot;image&quot;,&quot;style&quot;:&quot;width: 200px;height:70px;&quot;}"/>-->
<!-- </div>-->
<!-- </div>-->
<!-- todo end -->
<h4 style="text-align: center; font-size: 14pt; margin-top: 10px;">
<span>مدير إدارة الموارد البشرية</span>
<br/>
<span>Director of Human Resource</span>
<br/>
<span t-esc="env.user.sudo().company_id.hr_manager_id.name"/>
<span t-esc="env.user.sudo().company_id.hr_manager_id.name"/>
</h4>
<!-- <div class="column">-->
<!-- <div align="center">-->

View File

@ -19,7 +19,7 @@
url("/employee_requests/static/fonts/ce7b5754581057e6f7444e2192850cc8.ttf") format("truetype");
}
#content-table thead tr th{
background-color: rgb(77, 168, 178);
background-color: rgb(20,166,156);
border: 1px solid #222;
vertical-align: middle;
font-weight: bold;
@ -66,11 +66,11 @@
<span>Employment Certificate</span>
</h3>
</div>
<table class="table table-borderless" style="margin-bottom: 10px;font-family: 'Sakkal Majalla'!important;font-size: 14pt;
background-size: 35%; background-position: right;background-repeat: no-repeat;">
<table class="table table-borderless"
style="margin-bottom: 5px; font-family: 'Sakkal Majalla' !important; font-size: 13pt; background-size: 35%; background-position: right; background-repeat: no-repeat;">
<tr style="border:0;">
<td style="text-align:right;width:50%;padding-left:50px;padding-right: 20px;">
<p style="font-weight: bold;color: #333;margin-bottom: 20px;">
<td style="text-align:right;width:50%;padding-left:10px;padding-right: 10px;">
<p style="font-weight: bold;color: #333;margin-bottom: 5px;">
<span style="border-bottom: 1px solid #333;">مقدم إلى:</span>
<span t-esc="doc.destination.name"/>
</p>
@ -80,31 +80,29 @@
<span>ولا يزال على رأس العمل حتى تاريخه و أعطيت له هذه الشهادة بناء على</span>
<span>طلبه دون أدنى مسئولية.</span>
</td>
<td style="direction:ltr;text-align:left;border:0;width:50%;padding-right: 50px;padding-left:20px;">
<p style="font-weight: bold;color: #333;margin-bottom: 20px;">
<td style="direction:ltr;text-align:left;border:0;width:50%;padding-right: 10px;padding-left:10px;">
<p style="font-weight: bold;color: #333;margin-bottom: 5px;">
<span style="border-bottom: 1px solid #333;">Addressed To:</span>
<span t-esc="doc.destination.english_name"/>
</p>
<span>This is to certify that Below-mentioned employee is working in</span>
<span style="font-weight: bold;">
<span t-esc="env.user.sudo().company_id.english_name"/>
-
</span>
<span>This certification</span>
<span>is issued</span>
<span>upon the request of the employee without any obligation</span>
<span>This certification is issued upon the request of the employee without any
obligation
</span>
</td>
</tr>
</table>
<br/>
<div class="OutlineElement Rtl SCXW182515882 BCX2">
<div class="TableContainer SCXW182515882 BCX2">
<center>
<table id="content-table" aria-rowcount="12" border="1"
class="Table Rtl TableWordWrap SCXW182515882 BCX2"
data-tablelook="1184" data-tablestyle="MsoTableGrid" style="margin-right:15%;">
class="Table Rtl TableWordWrap SCXW182515882 BCX2"
style="margin-right:10%; font-size: 8pt; width: 90%;">
<thead>
<tr>
<th colspan="2">تعريف عمل</th>
@ -113,64 +111,58 @@
</thead>
<tbody class="SCXW182515882 BCX2">
<tr>
<td>التاريخ</td>
<td style="width: 25%;">التاريخ</td>
<td colspan="2">
<span t-esc="doc.date"/>
</td>
<td>Date</td>
<td style="width: 25%;">Date</td>
</tr>
<tr>
<td>رقم الموظف</td>
<td style="width: 25%;">رقم الموظف</td>
<td colspan="2">
<span t-esc="doc.employee_id.emp_no"/>
</td>
<td>Emp No.</td>
<td style="width: 25%;">Emp No.</td>
</tr>
<tr>
<td>اسم الموظف</td>
<td style="width: 25%;">اسم الموظف</td>
<td>
<span t-esc="doc.employee_id.name"/>
</td>
<td>
<span t-esc="doc.employee_id.english_name"/>
</td>
<td>Name</td>
<td style="width: 25%;">Name</td>
</tr>
<tr>
<td>الوظيفة الحالية</td>
<td style="width: 25%;">الوظيفة الحالية</td>
<td colspan="2">
<span t-esc="doc.employee_id.job_id.name"/>
</td>
<td>Position</td>
<td style="width: 25%;">Position</td>
</tr>
<tr>
<td>رقم الهوية</td>
<td style="width: 25%;">رقم الهوية</td>
<td colspan="2">
<span t-esc="doc.employee_id.saudi_number.saudi_id or doc.employee_id.iqama_number.iqama_id"/>
</td>
<td>ID No.</td>
<td style="width: 25%;">ID No.</td>
</tr>
<tr>
<td>الجنسية</td>
<td style="width: 25%;">الجنسية</td>
<td colspan="2">
<span t-esc="doc.employee_id.country_id.name"/>
</td>
<td>Nationality</td>
<td style="width: 25%;">Nationality</td>
</tr>
<tr>
<td>تاريخ التعيين</td>
<td style="width: 25%;">تاريخ التعيين</td>
<td colspan="2">
<span t-esc="doc.employee_id.contract_id.hiring_date"/>
</td>
<td>Hire Date</td>
<td style="width: 25%;">Hire Date</td>
</tr>
</tbody>
</table>
</center>
@ -180,22 +172,23 @@
<br/>
<br/>
<br/>
<!-- todo start -->
<!-- <div class="">-->
<!-- <div style='float:left;margin-left:15px;' class="left">-->
<!-- <span t-field="env.user.sudo().company_id.hr_manager_id.user_id.sign_signature" t-options='{"widget": "image","style":"width: 90px;height:90px;"}'/>-->
<!-- </div>-->
<!-- <div style='float:right' class="signature right">-->
<!-- <span t-field="env.user.sudo().company_id.hr_manager_id.user_id.sign_initials" t-options='{"widget": "image","style":"width: 200px;height:70px;"}'/>-->
<!-- </div>-->
<!-- </div>-->
<!-- todo end -->
<h4 style="text-align: center;">
<br/>
<!-- todo start -->
<!-- <div class="">-->
<!-- <div style='float:left;margin-left:15px;' class="left">-->
<!-- <span t-field="env.user.sudo().company_id.hr_manager_id.user_id.sign_signature" t-options='{"widget": "image","style":"width: 90px;height:90px;"}'/>-->
<!-- </div>-->
<!-- <div style='float:right' class="signature right">-->
<!-- <span t-field="env.user.sudo().company_id.hr_manager_id.user_id.sign_initials" t-options='{"widget": "image","style":"width: 200px;height:70px;"}'/>-->
<!-- </div>-->
<!-- </div>-->
<!-- todo end -->
<h4 style="text-align: center; font-size: 14pt; margin-top: 10px;">
<span>مدير إدارة الموارد البشرية</span>
<br/>
<span>Director of Human Resource</span>
<br/>
<span t-esc="env.user.sudo().company_id.hr_manager_id.name"/>
<span t-esc="env.user.sudo().company_id.hr_manager_id.name"/>
</h4>
<!--div class="row" style="font-family: 'Sakkal Majalla'!important;">
<div class="col-xs-5">
@ -218,8 +211,6 @@
<br/>
</div>
</t>
<div class="footer">

View File

@ -54,7 +54,7 @@
<span style="float:right;margin-right:8%">
<strong>السـادة/</strong>
<span t-esc="o.destination"/>
<span t-esc="o.destination.name"/>
</span>
<span style="float:left;margin-left:8%">
<strong>المحترمين ,,</strong>
@ -91,7 +91,7 @@
وبدل سكن وقدره
(<span
t-field="o.employee_id.contract_id.house_allowance_temp"/>) وبدل نقل وقدره
(<span t-field="o.employee_id.contract_id.transport_allowance_temp"/>)، ومازال/ت على رأس
(<span t-field="o.employee_id.contract_id.transport_allowance"/>)، ومازال/ت على رأس
العمل حتى تاريخه ولا
<span>مانع لدينا</span>

View File

@ -140,8 +140,8 @@
<field name="domain_force">[(1 ,'=', 1)]</field>
<field name="groups" eval="[(4, ref('hr_base.group_executive_manager')),
(4, ref('hr_base.group_general_manager')),
(4, ref('hr_base.group_account_manager')),
(4, ref('hr_base.group_services_manager')),
(4, ref('hr_base.group_account_manager')),
(4, ref('hr_base.group_administrative_affairs')),
(4, ref('hr_base.group_IT_manager')),
(4, ref('hr_base.group_cyber_security')),
@ -212,8 +212,8 @@
<field name="model_id" ref="model_employee_other_request"/>
<field name="domain_force">[(1 ,'=', 1)]</field>
<field name="groups" eval="[(4, ref('hr_base.group_general_manager')),
(4, ref('hr_base.group_services_manager')),
(4, ref('hr.group_hr_manager')),
(4, ref('hr_base.group_services_manager')),
(4, ref('hr.group_hr_user'))]"/>
</record>

View File

@ -21,7 +21,7 @@
<menuitem name="Employee Clearance Form" id="employee_clearance_form"
parent="employee_request_menu_item" action="employee_clearance_form_action" sequence="3"/>
<menuitem name="Permissions" id="employee_personal_permission_menu_item"
<menuitem name="Personal Permissions/Half Day" id="employee_personal_permission_menu_item"
parent="employee_request_menu_item"
action="employee_personal_permission_action" sequence="3"/>

View File

@ -46,7 +46,7 @@
<sheet>
<group>
<group string="Permission Info">
<field name="permission_type_id" options="{'no_create': True, 'no_open': True, 'no_create_edit': True}" />
<field name="permission_type_id" options="{'no_create': True, 'no_open': True, 'no_create_edit': True}" attrs="{'readonly':[('state' , '!=' , 'draft')]}"/>
<field name="date" string="Date Request"
attrs="{'readonly':[('state','!=','draft')],'required':1}"/>
@ -66,8 +66,6 @@
attrs="{'readonly':[('state' , '!=' , 'draft')],'required':1}"/>
<field name="date_to" string="Date To"
attrs="{'readonly':[('state' , '!=' , 'draft')],'required':1}"/>
<field name="time_from" widget="float_time"/>
<field name="time_to" widget="float_time"/>
<field name="duration" string="Duration" attrs="{'readonly':1}" widget="float_time"/>
<field name="balance" string="Permission Limit" readonly="1" widget="float_time"/>
<field name="permission_number" force_save="True" string="Permission Per Month" widget="float_time"/>