콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
5261 화면

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!   

아바타
취소
베스트 답변

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!

아바타
취소
작성자 베스트 답변

Anyone?

아바타
취소
관련 게시물 답글 화면 활동
1
3월 15
6190
0
3월 15
3475
0
4월 16
3477
0
1월 16
3353
2
9월 15
6795