Odoo 도움말

0

0
10 응답
2
Avatar

Niyas Raphy India

--Niyas Raphy--
27501
| 7 7 11
Wayanad, Kerala, India
--Niyas Raphy--

Odoo Techno Functionalist

Feel free to connect :  niyasraphyk@gmail.com

Twitter:https://twitter.com/niyasraphy
LinkedIn: https://www.linkedin.com/in/niyasraphy/
FB:https://www.facebook.com/niyasraphy123
Whatsapp : +917736136763
Happy to help :)

Niyas Raphy India
18. 1. 23. 오후 11:24

Hi,
To view the attendance of their own  for the employees, first what we have to do is that, make the menu Attendance under the Manage attendance menu should be visible for the employees.


To make this menu visible for the employee,  activate the developer mode and navigate to Settings -> Technical -> User Interface -> Menu items,

then search the menu named Manage attendance and its sub menu Attendance , Open the record and add the group employee in the access right page. Do the process for the both the menu's.


Once for the both menus the group employee is added , then the users can see the menu named Attendance.


Now the problem is that the employees can see the attendance of other employees too. So we have to restrict it. For restricting it, we have to add a record rule to overcome it.


Navigate to Settings -> Technical -> Security -> Record Rules, then create a new rule.

Select the object as Attendance, in the group section add group employees into it.

Then in the rule definition add this line,

['|',('employee_id.user_id','=',user.id),('employee_id.user_id','=',False)]


Thanks


2 의견
Luis Guzmán Mexico
18. 3. 8. 오전 5:46

AFAIK Manual Attendance includes create and write access rights, so by adding a the menu, would employees be able to edit the records whenever they want, right?

That may be an issue to keep a trusted record. That said, it is a great tip, thanks for sharing.

Niyas Raphy India
18. 3. 8. 오전 6:25

Right now itself , that system not trusted, as the employee can access the system from anywhere and put the attendance as per his need.

0
Saimon 방글라데시
19. 8. 7. 오후 11:06

it's work but when i use server action there have another problem in attendance form view, id change and press it should not work but it work. This id is another employee attendance id.

How to fixed in odoo v12





0
aakasha India
18. 8. 10. 오전 3:21

hii niyas raphy
i just create a new record rule with that and assign groups to it.


['|',('employee_id.user_id','=',user.id),('employee_id.user_id','=',False)]

by applying that rule he can see his own attendance only.thats great

bt i need, 

i have 2 company with there employees,suppose user1 is under company1 and company1 have one adminA other than super admin.

when admin1 logged in they also want to see the attendance of employee1(both the employee1,admin1 want to see employee1 attendance) bt now only employee1 can see his attendance,what changes are need to get this answer.

0
HLX Studios United States
18. 2. 26. 오전 10:49

Turns out there is a very easy way to do it.  Using an admin account click Attendances >> Employees >> Pick an Employee >> Attendance.  Now you should see a list of attendances.  Copy that URL.  It will look something like this though the domain & user id will be different:  http://yoursite.com/web#view_type=list&model=hr.attendance&action=439&active_id=000


Now, log out and log in as that user that you've picked.  Even without additional credentials, you will be able to see all of the attendances.  That user (if they are not an officer or an admin) will not be able to see the attendances of other users.


 

0
Avatar

Pinakin Nayi (pna) India

--Pinakin Nayi (pna)--
1994
| 2 2 7
Ahmedabad, India
--Pinakin Nayi (pna)--

He has good skills in problem identification and implementation of effective solutions. He is working in Odoo India.

Techno-Functional
Skype: pinakinerp

LinkedIn : https://www.linkedin.com/in/pinakin-nayi-2a33103a/

 

Pinakin Nayi (pna) India
18. 1. 24. 오전 12:13

Probably no need some additional access rights, user can see own attendances from employee form. User open their own employee form and where from stat button 'Attendances' he/she can see their own all attendances.


3 의견
Niyas Raphy India
18. 1. 24. 오전 1:00

Hi,

So for the users having the group manual attendance and employee can see their own attendance ? I think for that the user must have the group officer in attendance

Pinakin Nayi (pna) India
18. 1. 24. 오전 1:31

Opps... You are right... I am not expecting this... At least user with "Manual Attendances" can see own attendances...

Niyas Raphy India
18. 1. 24. 오전 1:35

Yes, a little improvement that Odoo can make :)

질문하기
태그
Keep Informed
1 팔로워
About This Community

This platform 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.

Register
Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now