Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
3528 Weergaven


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? 




Avatar
Annuleer
Beste antwoord

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

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
2
jun. 25
705
4
jul. 18
3427
1
nov. 16
3678
1
mrt. 15
4664
1
aug. 25
409