Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to restrict an employee from deleting an calendar event in Odoo?

I tried taking out the delete access in calendar-> security folder -> calendar_event_all employee , but did not give any result

access_calendar_attendee_employee,calendar.attendee_employee,model_calendar_attendee,base.group_user,1,1,1,1

this is the access security line in calendar's security's csv file

like image 251
Shravy Avatar asked Sep 05 '15 05:09

Shravy


Video Answer


1 Answers

you change access right of below for calendar event:

access_calendar_event_all_employee,calendar.event_all_employee,model_calendar_event,base.group_user,1,1,1,0

calendar event restricted delete for the base.group_user = Employee .

if you want to create your own group then add following type code

Example:

 <record model="res.groups" id="group_user">
       <field name="implied_ids" eval="[(4, ref('group_no_one'))]"/>
       <field name="users" eval="[(4, ref('base.user_root'))]"/>
  </record>
like image 200
Jainik Patel Avatar answered Sep 22 '22 19:09

Jainik Patel