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
คำถามนี้ถูกตั้งค่าสถานะ
1
ตอบกลับ
5531
มุมมอง
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)]}
}
สนุกกับการพูดคุยนี้ใช่ไหม? เข้าร่วมเลย!
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อ| Related Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
|---|---|---|---|---|
|
|
1
ต.ค. 15
|
10227 | ||
|
|
0
ส.ค. 22
|
3653 | ||
|
|
3
ก.ค. 18
|
7461 | ||
|
|
0
มี.ค. 15
|
8802 | ||
|
|
1
ก.พ. 26
|
1801 |