This commit is contained in:
Bakry 2024-08-27 15:47:08 +03:00
parent 1eb6879674
commit 75ddba35ec
8 changed files with 28 additions and 30 deletions

View File

@ -74,7 +74,7 @@
<span style="border-bottom: 1px solid #333;">مقدم إلى:</span>
<span t-esc="doc.destination.name"/>
</p>
<span>نفيدكم بأن الموظف الموضح هويته أدنا يعمل لدى</span>
<span>نفيدكم بأن الموظف الموضح هويته أدناه يعمل لدى</span>
<span style="font-weight: bold;"><span t-esc="env.user.sudo().company_id.name"/>-</span>
<span>ولا يزال على رأس العمل حتى تاريخه و أعطيت له هذه الشهادة بناء على</span>
<span>طلبه دون أدنى مسئولية.</span>
@ -103,7 +103,7 @@
<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">تعريف عمل</th>
<th colspan="2">Certificate of Employment</th>
</tr>
</thead>
@ -161,7 +161,7 @@
<tr>
<td>الراتب الأساسي</td>
<td colspan="2">
<span t-esc="doc.employee_id.contract_id.salary"/>
<span t-field="doc.employee_id.contract_id.salary"/>
<span>ريال</span>
</td>
<td>Basic Salary</td>
@ -170,7 +170,7 @@
<tr>
<td>بدل السكن</td>
<td colspan="2">
<span t-esc="doc.employee_id.contract_id.house_allowance_temp"/>
<span t-field="doc.employee_id.contract_id.house_allowance_temp"/>
<span>ريال</span>
</td>
<td>Housing Allowance</td>
@ -179,7 +179,7 @@
<tr>
<td>بدل النقل</td>
<td colspan="2">
<span t-esc="doc.employee_id.contract_id.transport_allowance"/>
<span t-field="doc.employee_id.contract_id.transport_allowance"/>
<span>ريال</span>
</td>
<td>Transportation Allowance</td>

View File

@ -72,7 +72,7 @@
<span style="border-bottom: 1px solid #333;">مقدم إلى:</span>
<span t-esc="doc.destination.name"/>
</p>
<span>نفيدكم بأن الموظف الموضح هويته أدنا يعمل لدى</span>
<span>نفيدكم بأن الموظف الموضح هويته أدناه يعمل لدى</span>
<span style="font-weight: bold;"><span t-esc="env.user.sudo().company_id.name"/>-</span>
<span>ولا يزال على رأس العمل حتى تاريخه و أعطيت له هذه الشهادة بناء على</span>
<span>طلبه دون أدنى مسئولية.</span>
@ -102,7 +102,7 @@
<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%;">
<thead>
<tr>
<th colspan="2">إفادة عمل</th>
<th colspan="2">تعريف عمل</th>
<th colspan="2">Certificate of Employment</th>
</tr>
</thead>
@ -168,7 +168,7 @@
<tr>
<td>الراتب الشهري الإجمالي</td>
<td colspan="2">
<span t-esc="doc.employee_id.contract_id.total_net"/>
<span t-field="doc.employee_id.contract_id.total_net"/>
<span>ريال</span>
</td>
<td>Total Salary / month</td>

View File

@ -74,7 +74,7 @@
<span style="border-bottom: 1px solid #333;">مقدم إلى:</span>
<span t-esc="doc.destination.name"/>
</p>
<span>نفيدكم بأن الموظف الموضح هويته أدنا يعمل لدى</span>
<span>نفيدكم بأن الموظف الموضح هويته أدناه يعمل لدى</span>
<span style="font-weight: bold;"><span t-esc="env.user.sudo().company_id.name"/>-
</span>
<span>ولا يزال على رأس العمل حتى تاريخه و أعطيت له هذه الشهادة بناء على</span>
@ -107,7 +107,7 @@
data-tablelook="1184" data-tablestyle="MsoTableGrid" style="margin-right:15%;">
<thead>
<tr>
<th colspan="2">إفادة عمل</th>
<th colspan="2">تعريف عمل</th>
<th colspan="2">Certificate of Employment</th>
</tr>
</thead>

View File

@ -99,8 +99,10 @@
attrs="{'invisible':[('request_type','!=','dependent')]}"/>
<field name="parent_request_id" attrs="{'invisible':['|',('parent_request_id','=','False'),
('request_type','!=','insurance')]}" readonly="1"/>
<field name="destination" attrs="{'invisible': [('request_type', '!=', 'salary_define')], 'required': [('request_type', '=', 'salary_define')],
'readonly': [('state', '!=', 'draft')]}"/>
<field name="destination" attrs="{'invisible': [('request_type', 'not in', ('salary_define','salary_fixing'))],
'required': [('request_type', 'in', ('salary_define','salary_fixing'))],'readonly': [('state', '!=', 'draft')]}"/>
<field name="print_type" attrs="{'invisible': [('request_type', '!=', 'salary_define')], 'required': [('request_type', '=', 'salary_define')],
'readonly': [('state', '!=', 'draft')]}"/>

View File

@ -2370,6 +2370,7 @@ msgstr "إسم الموظف"
#: model_terms:ir.ui.view,arch_db:exp_official_mission.view_employee_mission_filter
#: model_terms:ir.ui.view,arch_db:exp_official_mission.view_employee_filter_training
#: model_terms:ir.ui.view,arch_db:exp_official_mission.view_employee_filter_especially_hours
#: model_terms:ir.ui.view,arch_db:exp_official_mission.employee_official_mission_tree_view
msgid "Responsible"
msgstr "مقدم الطلب"

View File

@ -51,13 +51,11 @@
<field name="duration_type" string="Duration Type" invisible="1"/>
<field name="date_from" string="Date From"
attrs="{'required': [('state', '=', 'direct_manager')],
'readonly':[('state','not in',('draft','direct_manager','send'))] }"/>
<field name="date_from" string="Date From" required="1"
attrs="{'readonly':[('state','not in',('draft','direct_manager','send'))] }"/>
<field name="date_to" string="Date To"
attrs="{'required': [('state', '=', 'direct_manager')],
'readonly':[('state','not in',('draft','direct_manager','send'))] }"/>
<field name="date_to" string="Date To" required="1"
attrs="{'readonly':[('state','not in',('draft','direct_manager','send'))] }"/>
<field name="date_duration" string="Duration Days" readonly="1" force_save="1"
attrs="{'required':[('duration_type','=','days')]}"/>

View File

@ -60,12 +60,10 @@
attrs="{'readonly':[('state','not in',('draft'))]}" required="1"/>
<!--when Duration type in mission type is days-->
<field name="duration_type" string="Duration Type" invisible="1"/>
<field name="date_from" string="Date From"
attrs="{'required':[('state', '=', 'depart_manager')],
'readonly':[('state','not in',('draft','direct_manager','depart_manager','send'))]}"/>
<field name="date_to" string="Date To"
attrs="{'required': [('state', '=', 'depart_manager')],
'readonly':[('state','not in',('draft','direct_manager','depart_manager','send'))] }"/>
<field name="date_from" string="Date From" required="1"
attrs="{'readonly':[('state','not in',('draft','direct_manager','depart_manager','send'))]}"/>
<field name="date_to" string="Date To" required="1"
attrs="{'readonly':[('state','not in',('draft','direct_manager','depart_manager','send'))] }"/>
<!--when Duration type in mission type is hours-->
<field name="hour_from" string="Hour From" widget="float_time"
attrs="{'required': [('state', '=', 'depart_manager')],
@ -225,6 +223,7 @@
<field name="arch" type="xml">
<tree decoration-danger="state == 'refused'" decoration-info="state == 'draft'"
string="Employee official mission">
<field name="employee_id" string="Responsible"/>
<field name="mission_type" string="Mission Type"/>
<field name="date" string="Date"/>
<field name="date_from" string="Date From"/>

View File

@ -63,12 +63,10 @@
attrs="{'readonly':[('state','not in',('draft','direct_manager','depart_manager','send'))] }"/>
<!--when Duration type in mission type is days-->
<field name="duration_type" string="Duration Type" invisible="1"/>
<field name="date_from" string="Date From"
attrs="{'required': [('state', '=', 'depart_manager')],
'readonly':[('state','not in',('draft','direct_manager','depart_manager','send'))] }"/>
<field name="date_to" string="Date To"
attrs="{'required': [('state', '=', 'depart_manager')],
'readonly':[('state','not in',('draft','direct_manager','depart_manager','send'))] }"/>
<field name="date_from" string="Date From" required="1"
attrs="{'readonly':[('state','not in',('draft','direct_manager','depart_manager','send'))] }"/>
<field name="date_to" string="Date To" required="1"
attrs="{'readonly':[('state','not in',('draft','direct_manager','depart_manager','send'))] }"/>
<!--when Duration type in mission type is hours-->
<field name="hour_from" string="Hour From" widget="float_time"
attrs="{'required': [('state', '=', 'depart_manager')],