fix mission

This commit is contained in:
Bakry 2025-06-23 15:35:52 +03:00
parent ff0b84a786
commit eefcc724da
3 changed files with 21 additions and 1 deletions

View File

@ -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 "في حالة عدم وجود حضور، سيتم اعتبار اليوم غياب"

View File

@ -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:

View File

@ -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"/>