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:
- Müşteri İlişkileri Yönetimi
- e-Commerce
- Muhasebe
- Envanter
- PoS
- Project
- MRP
Bu soru işaretlendi
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)]}
}
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Üye Olİlgili Gönderiler | Cevaplar | Görünümler | Aktivite | |
---|---|---|---|---|
|
1
Eki 15
|
8232 | ||
|
0
Ağu 22
|
2162 | ||
|
3
Tem 18
|
5251 | ||
|
0
Mar 15
|
6675 | ||
|
1
Haz 23
|
3362 |