diff --git a/addons/calendar/calendar.py b/addons/calendar/calendar.py
index ea4b9780d69..b738bea3bd4 100644
--- a/addons/calendar/calendar.py
+++ b/addons/calendar/calendar.py
@@ -901,7 +901,7 @@ class calendar_event(osv.Model):
'stop_datetime': fields.datetime('End Datetime', states={'done': [('readonly', True)]}, track_visibility='onchange'), # old date_deadline
'duration': fields.float('Duration', states={'done': [('readonly', True)]}),
'description': fields.text('Description', states={'done': [('readonly', True)]}),
- 'class': fields.selection([('public', 'Everyone'), ('private', 'Only me'), ('confidential', 'Only internal users')], 'Privacy', states={'done': [('readonly', True)]}),
+ 'privacy': fields.selection([('public', 'Everyone'), ('private', 'Only me'), ('confidential', 'Only internal users')], 'Privacy', states={'done': [('readonly', True)]}, oldname='class'),
'location': fields.char('Location', help="Location of Event", track_visibility='onchange', states={'done': [('readonly', True)]}),
'show_as': fields.selection([('free', 'Free'), ('busy', 'Busy')], 'Show Time as', states={'done': [('readonly', True)]}),
@@ -950,7 +950,7 @@ class calendar_event(osv.Model):
'rrule_type': False,
'allday': False,
'state': 'draft',
- 'class': 'public',
+ 'privacy': 'public',
'show_as': 'busy',
'month_by': 'date',
'interval': 1,
@@ -1657,7 +1657,7 @@ class calendar_event(osv.Model):
if context is None:
context = {}
fields2 = fields and fields[:] or None
- EXTRAFIELDS = ('class', 'user_id', 'duration', 'allday', 'start', 'start_date', 'start_datetime', 'rrule')
+ EXTRAFIELDS = ('privacy', 'user_id', 'duration', 'allday', 'start', 'start_date', 'start_datetime', 'rrule')
for f in EXTRAFIELDS:
if fields and (f not in fields):
fields2.append(f)
@@ -1695,7 +1695,7 @@ class calendar_event(osv.Model):
user_id = type(r['user_id']) in (tuple, list) and r['user_id'][0] or r['user_id']
if user_id == uid:
continue
- if r['class'] == 'private':
+ if r['privacy'] == 'private':
for f in r.keys():
recurrent_fields = self._get_recurrent_fields(cr, uid, context=context)
public_fields = list(set(recurrent_fields + ['id', 'allday', 'start', 'stop', 'display_start', 'display_stop', 'duration', 'user_id', 'state', 'interval', 'count', 'recurrent_id_date', 'rrule']))
diff --git a/addons/calendar/calendar_view.xml b/addons/calendar/calendar_view.xml
index d36c97eff87..ea5fcb693cb 100644
--- a/addons/calendar/calendar_view.xml
+++ b/addons/calendar/calendar_view.xml
@@ -13,7 +13,7 @@
-
+
Meeting Types
@@ -61,7 +61,7 @@
form
-
+
@@ -173,14 +173,14 @@
-
+
-
+
-
+
@@ -188,7 +188,7 @@
-
+
@@ -210,7 +210,7 @@
-
+
-
-
+
+
diff --git a/addons/calendar/test/calendar_test.yml b/addons/calendar/test/calendar_test.yml
index 01cb321006f..ec5d7a87d75 100644
--- a/addons/calendar/test/calendar_test.yml
+++ b/addons/calendar/test/calendar_test.yml
@@ -2,7 +2,7 @@
In Order to test calendar, I will first create One Simple Event with real data
-
!record {model: calendar.event, id: calendar_event_technicalpresentation0}:
- class: private
+ privacy: private
start: '2011-04-30 16:00:00'
stop: '2011-04-30 18:30:00'
description: The Technical Presentation will cover following topics:\n* Creating OpenERP
@@ -46,7 +46,7 @@
-
!record {model: calendar.event, id: calendar_event_alldaytestevent0}:
allday: 1
- class: confidential
+ privacy: confidential
start: '2011-04-30 00:00:00'
stop: '2011-04-30 00:00:00'
description: 'All day technical test '
diff --git a/addons/hr_holidays/models/hr_holidays.py b/addons/hr_holidays/models/hr_holidays.py
index 84907b81fb9..72cbd3e24c1 100644
--- a/addons/hr_holidays/models/hr_holidays.py
+++ b/addons/hr_holidays/models/hr_holidays.py
@@ -435,7 +435,7 @@ class Holidays(models.Model):
'stop': holiday.date_to,
'allday': False,
'state': 'open', # to block that meeting date in the calendar
- 'class': 'confidential'
+ 'privacy': 'confidential'
}
#Add the partner_id (if exist) as an attendee
if holiday.user_id and holiday.user_id.partner_id: