Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Human Resources / Approved timesheets

By
BlazeStar
on 5/20/15, 10:09 AM 622 views

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!   

0

Pawan

--Pawan--
1267
| 4 3 5
Hyderabad, India
--Pawan--


Pawan
On 9/20/15, 1:13 PM

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!

0
BlazeStar
On 6/5/15, 8:22 PM

Anyone?

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 5/20/15, 10:09 AM
Seen: 622 times
Last updated: 9/20/15, 1:13 PM