Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
5167 Zobrazení

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!   

Avatar
Zrušit
Nejlepší odpověď

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!

Avatar
Zrušit
Autor Nejlepší odpověď

Anyone?

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
bře 15
6079
0
bře 15
3393
0
dub 16
3376
0
led 16
3264
2
zář 15
6661