Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions hr_employee_updation/models/hr_employee.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,16 +80,16 @@ def mail_reminder(self):
self.env['mail.mail'].sudo().create(main_content).send()

personal_mobile = fields.Char(string='Mobile', related='address_home_id.mobile', store=True,
help="Personal mobile number of the employee")
joining_date = fields.Date(string='Joining Date', help="Employee joining date computed from the contract start date",compute='compute_joining', store=True)
id_expiry_date = fields.Date(string='Expiry Date', help='Expiry date of Identification ID')
passport_expiry_date = fields.Date(string='Expiry Date', help='Expiry date of Passport ID')
help="Personal mobile number of the employee", groups='hr.group_hr_user')
joining_date = fields.Date(string='Joining Date', help="Employee joining date computed from the contract start date",compute='compute_joining', store=True, groups='hr.group_hr_user')
id_expiry_date = fields.Date(string='Expiry Date', help='Expiry date of Identification ID', groups='hr.group_hr_user')
passport_expiry_date = fields.Date(string='Expiry Date', help='Expiry date of Passport ID', groups='hr.group_hr_user')
id_attachment_id = fields.Many2many('ir.attachment', 'id_attachment_rel', 'id_ref', 'attach_ref',
string="Attachment", help='You can attach the copy of your Id')
string="Attachment", help='You can attach the copy of your Id', groups='hr.group_hr_user')
passport_attachment_id = fields.Many2many('ir.attachment', 'passport_attachment_rel', 'passport_ref', 'attach_ref1',
string="Attachment",
help='You can attach the copy of Passport')
fam_ids = fields.One2many('hr.employee.family', 'employee_id', string='Family', help='Family Information')
help='You can attach the copy of Passport', groups='hr.group_hr_user')
fam_ids = fields.One2many('hr.employee.family', 'employee_id', string='Family', help='Family Information', groups='hr.group_hr_user')

@api.depends('contract_id')
def compute_joining(self):
Expand Down