Timesheet Module - Employee can only input own lines

31 views
Skip to first unread message

Hendrik Brandes

unread,
Dec 25, 2017, 12:30:05 PM12/25/17
to tryton
Hello,

we are introducing the timesheet module, and we are facing the topic, that we cannot find a small solution for limit the input of timesheet-lines only for the current user.

Is there a possibility, to change this via the authority-concept or do we need to develop a small solution to disable the necessary input fields, if the user is not authorized?

Thank you and best regards,
Hendrik

Cédric Krier

unread,
Dec 25, 2017, 2:15:08 PM12/25/17
to tryton
Hi,

On 2017-12-25 09:02, 'Hendrik Brandes' via tryton wrote:
> we are introducing the timesheet module, and we are facing the topic,
> that we cannot find a small solution for limit the input of
> timesheet-lines only for the current user.
>
> Is there a possibility, to change this via the authority-concept or do
> we need to develop a small solution to disable the necessary input
> fields, if the user is not authorized?

By default, users can only fill timesheet lines for their employee:
http://hg.tryton.org/modules/timesheet/file/default/line.xml#l60

The timesheet admin group can fill for anyone.

--
Cédric Krier - B2CK SPRL
Email/Jabber: cedric...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

Hendrik Brandes

unread,
Jan 10, 2018, 9:50:07 AM1/10/18
to tryton
Am Montag, 25. Dezember 2017 20:15:08 UTC+1 schrieb Cédric Krier:
> Hi,
>
> On 2017-12-25 09:02, 'Hendrik Brandes' via tryton wrote:
> > we are introducing the timesheet module, and we are facing the topic,
> > that we cannot find a small solution for limit the input of
> > timesheet-lines only for the current user.
> >
> > Is there a possibility, to change this via the authority-concept or do
> > we need to develop a small solution to disable the necessary input
> > fields, if the user is not authorized?
>
> By default, users can only fill timesheet lines for their employee:
> http://hg.tryton.org/modules/timesheet/file/default/line.xml#l60
>
> The timesheet admin group can fill for anyone.

Thank you. I saw this, but did not understand the authority-definition.
Reply all
Reply to author
Forward
0 new messages