Skip to Content
Menu
This question has been flagged
2 Replies
4817 Views

Hello everyone,

Here's my context : Only managers should see the field "everybody's calendar". I need to give the attribute group=manager etc. I know how to do that.

My problem : I don't work with Python, only with the Odoo interface debug mode. And I can't find the field "addons/calendar/static/src/js/base_calendar.js", and I don't find the view corresponding.

Would you know a solution to have an access to the xml of this view ? Do I need to enter in the code source ?

Thanks a lot, regards


 

Avatar
Discard
Best Answer

thank youu sir.

bt 

how can i limit that rule to managers plzz tell me

what is the rule:

[(1,'=',1)] is this true

the 2nd rule for employee is :- [('create_uid', '=', user.id)] 

then what is the rule to limit only managerss plz tell me

Avatar
Discard
Best Answer

Here's an idea that might achieve something similar without any coding.

I am not familiar with Odoo 9, but you should be able to use Record Rules to limit access.  Create two record rules: one to limit users to only their own calendar events, and another to grant managers to view all users calendar events.   

In v11, there is a record rule "All Calendar Event for employees" and you would need to limit that to only the managers (rather than all employees).  Then create another one with the domain filter [('create_uid', '=', user.id)] for all employees.

Avatar
Discard