fix mission
This commit is contained in:
parent
ff0b84a786
commit
eefcc724da
|
|
@ -2790,4 +2790,18 @@ msgstr "الموارد البشرية"
|
|||
#: model:ir.model.fields,field_description:exp_official_mission.field_hr_official_mission_type__analytic_account_id
|
||||
#: model_terms:ir.ui.view,arch_db:exp_official_mission.employee_official_mission_type_form_view
|
||||
msgid "Analytic Account"
|
||||
msgstr "الحساب التحليلي"
|
||||
msgstr "الحساب التحليلي"
|
||||
|
||||
#. module: exp_official_mission
|
||||
#: model:ir.model.fields,field_description:exp_official_mission.field_hr_official_mission_type__absent_attendance
|
||||
#: model_terms:ir.ui.view,arch_db:exp_official_mission.employee_official_mission_type_form_view
|
||||
msgid "Absent Attendance"
|
||||
msgstr "غياب الحضور"
|
||||
|
||||
#. module: exp_official_mission
|
||||
#: model_terms:ir.ui.view,arch_db:exp_official_mission.employee_official_mission_type_form_view
|
||||
#: model:ir.model.fields,help:exp_official_mission.field_hr_official_mission_type__absent_attendance
|
||||
msgid "If there are no attendance, this day will be absent."
|
||||
msgstr "في حالة عدم وجود حضور، سيتم اعتبار اليوم غياب"
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1049,6 +1049,8 @@ class HrOfficialMissionType(models.Model):
|
|||
account_ids = fields.One2many('hr.mission.type.account', 'mission_id')
|
||||
working_days = fields.Boolean(string='Working Days Only', default=False)
|
||||
|
||||
absent_attendance = fields.Boolean(help='If there are no attendance, this day will be absent.')
|
||||
|
||||
@api.onchange('duration_type')
|
||||
def _change_duration_type(self):
|
||||
for rec in self:
|
||||
|
|
|
|||
|
|
@ -51,6 +51,10 @@
|
|||
<field name="work_state" required="1" string='Mission Type'/>
|
||||
<field name="special_hours"
|
||||
attrs="{'invisible':[('work_state','not in',('others','work'))]}"/>
|
||||
|
||||
<field name="absent_attendance" string='Absent Attendance'
|
||||
attrs="{'invisible':[('work_state','not in',('others','work'))]}"
|
||||
help="If there are no attendance, this day will be absent."/>
|
||||
</group>
|
||||
<group groups="hr.group_hr_user">
|
||||
<separator string="Financial Details"/>
|
||||
|
|
|
|||
Loading…
Reference in New Issue