Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
3 Vastaukset
2790 Näkymät

 Putting in the data for a day/week time-sheet is ok.

After pressing the button "Submitting to the Manager' the Manager of course gets the ability to agree, but the user can do it same way directly afterwards with pressung the button 'Approve'.
The user hat NO manager rights, but always can appove himself.

This does not make any sense, as it should only be approvable by the manager. Otherwise the time-sheet of a employee can be changed/resetted back and forth anytime the user want it to do. 


On the runbot the demo user can do the same,mentioned above,  without manager rights.

Avatar
Hylkää
Paras vastaus

Hi Zeldarius,

try below code.

<button name="action_timesheet_done" states="confirm" string="Approve" type="object" groups="hr_timesheet.group_timesheet_manager" class="oe_highlight"/>

Hope it will help.

Thanks.





Email: odoo@aktivsoftware.com

Skype: kalpeshmaheshwari


Avatar
Hylkää
Tekijä Paras vastaus

A very very good hint.  As a newbie I 'only' know how to place a group...but then with less knowledge I'm fishing inside these endless abilities of insertings. Even maybe I have done it right so far ....but it's also possible, the group 'timesheets-user' must get any delete inside too.

 


Many thanks  kalpeshmaheshwari,

your code works very very well. Now the timesheets are in the right running order. Only the manager can agree, as it should be.



Avatar
Hylkää
Paras vastaus

You can place a group on the button approve, only users of the group can see the button and approve 

Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
huhtik. 22
9447
2
lokak. 21
8772
1
heinäk. 21
22745
6
elok. 20
5481
1
toukok. 20
5669