Skip to Content
Menu
This question has been flagged

Hello, 

As part of our business, we need to be able to filter by department when using timesheet activities. 

I've configured this as a field when users are entering their timesheet information. However, editing the User Interface > Views > hr.analytic.timesheet.tree and adding: 

<field name="department_id"/> 

Results in a constraint error. 

Since the information is being entered via the timesheets, I imagine I don't have to add anything to the database. 

Does anyone know what needs to be done to add this column to the 'Timesheet Activities' view? 

Avatar
Discard
Author Best Answer

Hello Serpent Consulting, 

What about adding the 'Department' to the columns views through ? When using either <field name="department"/> or department_id, I get the following constraint: 

Error details:
Field `department_id` does not exist

Is this because the column isn't present in another model/form?     

Avatar
Discard
Best Answer

Aaron,

The  'account.analytic.line.tree' is the Editable list view, And 'account.analytic.line.form' is the form view.

The model is account.analytic.line.

Thanks.

Avatar
Discard
Related Posts Replies Views Activity
0
Dec 24
69
1
Sep 22
3749
0
Feb 21
2072
5
Aug 24
42979
2
Apr 24
949