diff --git a/yuthon_notice/models/yuthon_notice.py b/yuthon_notice/models/yuthon_notice.py index 9e72660d8..e77ceb0c8 100644 --- a/yuthon_notice/models/yuthon_notice.py +++ b/yuthon_notice/models/yuthon_notice.py @@ -234,6 +234,7 @@ class YuthonNotice(models.Model): msg_id = mapping['msg_id'] is_exist = self.env['yuthon.confirm.users'].search([ ('notice_id', '=', self.id), + ('notice_code', '=', self.code), ('employee_id', '=', emp_id) ], limit=1) if not is_exist: