From 3751379f1e9a4c215fb6eb898b4ccc67659b9ace Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Tue, 10 May 2022 21:51:50 +0700 Subject: initial commit 2 --- addons/calendar/security/calendar_security.xml | 37 ++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 addons/calendar/security/calendar_security.xml (limited to 'addons/calendar/security/calendar_security.xml') diff --git a/addons/calendar/security/calendar_security.xml b/addons/calendar/security/calendar_security.xml new file mode 100644 index 00000000..f8cf8f7c --- /dev/null +++ b/addons/calendar/security/calendar_security.xml @@ -0,0 +1,37 @@ + + + + + + Own events + + [('partner_ids', 'in', user.partner_id.id)] + + + + + + All Calendar Event for employees + [(1, '=', 1)] + + + + + Own attendees + + [(1, '=', 1)] + + + + + + Private events + ['|', ('privacy', '!=', 'private'), '&', ('privacy', '=', 'private'), ('partner_ids', 'in', user.partner_id.id)] + + + + + + + + -- cgit v1.2.3