Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
3612 มุมมอง


Edit*** It looks like I've actually configured this correct. HOWEVER, I think my issue has changed:

What I actually need this to do is inherit the department ID used in the timesheet (Completed in My Current Timesheets) so it is visible by people under 'timesheet activities'.

How do I achieve this? 

----------------------------------------------------------------------------

OLD ISSUE:

I've been able to include the department that an employee belongs to when they fill out their timesheets. 

This is populated in the view by:

<field name='department_id'>

However, using the same department_id field in the 'Timesheet Activities' view results in an error: 

Field(s) `arch` failed against a constraint: Invalid view definition
Error details:
Field `department_id` does not exist
How do I get this view to inherit the correct view/form and let me use the 'department_id' field? 




อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

It seems that you need to put the field department_id in the 'Timesheet Activities' model, that can be done as a direct many2one to hr.department or as a related field if you in your 'Timesheet Activities' model have a reference to the timesheet model that have the field department_id

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
Can you automate time sheet deductions? แก้ไขแล้ว
2
มิ.ย. 25
916
Missing form view in timesheet Odoo 11 แก้ไขแล้ว
4
ก.ค. 18
3547
1
พ.ย. 16
3842
1
มี.ค. 15
4789
1
ก.ย. 25
279