Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
5139 Widoki

Hello,

Using Odoo 8

In the Human Resources module

We use extensively the timesheet feature... the employees fill up their timesheet there, and their supervisor approves them.

What I find really surprising is that they can modify their timesheet AFTER they've been approved!

I would like to know if it is possible to block modifications everywhere for all timesheet and related timesheet activities once it's been approved.


Thank you!   

Awatar
Odrzuć
Najlepsza odpowiedź

Blaze,

You can take a boolean field, and make it TRUE once the Approve button is clicked by the Manager....
And on the fields for "attrs" attribute set this: attrs = {'readonly': [('YOUR_BOOLEAN_FIELD', '=', True)]}

Hope this will help you!

Awatar
Odrzuć
Autor Najlepsza odpowiedź

Anyone?

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
mar 15
6042
0
mar 15
3371
0
kwi 16
3361
0
sty 16
3242
2
wrz 15
6624