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:
- 客戶關係
- e-Commerce
- 會計
- 庫存
- PoS
- Project
- MRP
此問題已被標幟
1
回覆
3618
瀏覽次數
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
|
8277 | ||
|
0
8月 22
|
2222 | ||
|
3
7月 18
|
5262 | ||
|
0
3月 15
|
6694 | ||
|
1
6月 23
|
3368 |