fix remove field

This commit is contained in:
Bakry 2025-05-01 12:11:03 +03:00
parent 4a7e289ddb
commit fb2d1b5fca
3 changed files with 4 additions and 5 deletions

View File

@ -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 "القسم"

View File

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

View File

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