Timesheet Domain setup

Asked by Ishan Singh

Hello I want that when a project manager opens the menu time tracking-->timesheets, then he should be able to see the timesheets of the users of the department he is a manager so that he can confirm it. I am trying to define a domain rule in the project/manager group but getting no results. Please help me

Question information

Language:
English Edit question
Status:
Answered
For:
Odoo Server (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Serpent Consulting Services (serpent-consulting-services) said :
#1

Ishan,

You have to create a record rule like : employee_id.parent_id.user_id = user.id

In a broader sense, if domain is not directly adjustable, you have to add a field (related field to timesheet, to know the manager of dept.)

Thanks.

Revision history for this message
Ishan Singh (ishansingh2003) said :
#2

can u tell me in little bit detail

Revision history for this message
Serpent Consulting Services (serpent-consulting-services) said :
#3

Ishan,

Can you try the domain first?

Detail: there has to be a field on timesheet which links the employee's department's manager to current user.

Thanks.

Revision history for this message
Ishan Singh (ishansingh2003) said :
#4

i have a field on the timesheet named department_id and object hr_timesheet_sheet.sheet

Revision history for this message
Ishan Singh (ishansingh2003) said :
#5

i have a field on the timesheet named department_id and object
hr_timesheet_sheet.sheet

On Wed, Aug 1, 2012 at 2:21 PM, Serpent Consulting Services <
<email address hidden>> wrote:

> Your question #204738 on OpenERP Server changed:
> https://answers.launchpad.net/openobject-server/+question/204738
>
> Status: Open => Answered
>
> Serpent Consulting Services proposed the following answer:
> Ishan,
>
> Can you try the domain first?
>
> Detail: there has to be a field on timesheet which links the employee's
> department's manager to current user.
>
> Thanks.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
>
> https://answers.launchpad.net/openobject-server/+question/204738/+confirm?answer_id=2
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/openobject-server/+question/204738
>
> You received this question notification because you asked the question.
>

Revision history for this message
Serpent Consulting Services (serpent-consulting-services) said :
#6

This makes is even simpler.

domain : department_id.manager_id.user_id = user.id

Thanks.

Can you help with this problem?

Provide an answer of your own, or ask Ishan Singh for more information if necessary.

To post a message you must log in.