employee_id = self.env['hr.employee.ref'].sudo().search([('employees_id.id', '=', self.employees_id.id)])
if employee_id:
for emp in employee_id:
if not emp.end_date:
action = self.env.ref('project.open_view_project_all').read()[0]
action['domain'] = [('id', '=', emp.project_id.id)]
# print(action['domain'])
msg = (_('You cant add %s in this Project ,He/She is already busy with Project : %s,Please go back to the Project %s and add the End date ') % (
self.employees_id.name, emp.project_id.name, emp.project_id.name))
raise RedirectWarning(msg, action['id'], _('VIEW PROJECT'), )
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- 회계
- 재고 관리
- PoS
- Project
- MRP
신고된 질문입니다
2844
화면
관련 게시물 | 답글 | 화면 | 활동 | |
---|---|---|---|---|
|
6
8월 20
|
7523 | ||
|
0
4월 25
|
1445 | ||
|
4
5월 24
|
12755 | ||
|
1
5월 24
|
2645 | ||
|
1
4월 24
|
2235 |
Were you able to resolve it ? facing same issue.