Hi,
am facing an issue while using project task and timesheet
i assigned task to an employee but while adding timesheet i have option for the selection of multiple employees
can i pass any domain for this.am using odoo 12 community
Thanks in advance
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- 회계
- 재고 관리
- PoS
- Project
- MRP
신고된 질문입니다
1
회신
3760
화면
Hi,
can you try the code below
class TimesheetEmployee(models.Model):
_inherit = 'account.analytic.line'
@api.onchange('employee_id')
@api.depends('employee_id')
def _onchange_employee_id(self):
for analytic in self:
return {'domain':
{
'employee_id': [('user_id', '=', analytic.task_id.user_id.id)]}
}
관련 게시물 | 답글 | 화면 | 활동 | |
---|---|---|---|---|
|
1
10월 15
|
8511 | ||
|
0
8월 22
|
2389 | ||
|
3
7월 18
|
5443 | ||
|
0
3월 15
|
6882 | ||
|
1
6월 23
|
3576 |