commit
4d8fb7da13
|
|
@ -1463,7 +1463,6 @@ msgstr "قسم"
|
|||
#: model:ir.model.fields,field_description:hr_base.field_employee_eos__department
|
||||
#: model:ir.model.fields,field_description:hr_base.field_employee_iqama__department
|
||||
#: model:ir.model.fields,field_description:hr_base.field_eos_leaving__department
|
||||
#: model:ir.model.fields,field_description:hr_base.field_hr_employee__department
|
||||
#: model_terms:ir.ui.view,arch_db:hr_base.hr_extension_form_view
|
||||
msgid "Department"
|
||||
msgstr "القسم"
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ class HrEmployee(models.Model):
|
|||
present_address = fields.Char()
|
||||
work_location = fields.Char(string="Work Location")
|
||||
working_location = fields.Many2one('work.location', string="Work Location")
|
||||
department = fields.Many2one(comodel_name='hr.department')
|
||||
#department = fields.Many2one(comodel_name='hr.department')
|
||||
direct_emp = fields.Selection(selection=[("yes", "direct employee"), ("no", "not direct employee")], default="yes")
|
||||
is_marketer = fields.Boolean(string="marketer?")
|
||||
finger_print = fields.Boolean()
|
||||
|
|
@ -581,10 +581,10 @@ class HrEmployee(models.Model):
|
|||
)
|
||||
)
|
||||
|
||||
@api.onchange('department_id')
|
||||
'''@api.onchange('department_id')
|
||||
def onchange_department_id(self):
|
||||
if self.department_id:
|
||||
self.department = self.department_id
|
||||
self.department = self.department_id'''
|
||||
|
||||
@api.onchange("line_man")
|
||||
def onchange_line_man(self):
|
||||
|
|
|
|||
|
|
@ -123,7 +123,7 @@
|
|||
|
||||
<!-- HR settings -->
|
||||
<xpath expr="//field[@name='user_id']" position="after">
|
||||
<field name="department" invisible="1"/>
|
||||
<!--field name="department" invisible="1"/-->
|
||||
<field name="first_hiring_date" string="First Hiring Date" readonly="1"/>
|
||||
<field name="joining_date" string="Job Joining Date" readonly="1"/>
|
||||
<field name="leaving_date" readonly="1"/>
|
||||
|
|
|
|||
Loading…
Reference in New Issue