summaryrefslogtreecommitdiff
path: root/addons/calendar/models
diff options
context:
space:
mode:
authorLucas Lefèvre <lul@odoo.com>2019-12-19 09:27:08 +0100
committerLucas Lefèvre <lul@odoo.com>2020-04-09 10:56:37 +0200
commit591e296cbed5da55f5eeffe93632f8b6b6aba242 (patch)
treeae68a218d38c28fb7f5948b2c85824bc856844b7 /addons/calendar/models
parent6bafd7c677d016e82473f01bd0a3381ac3b24bbd (diff)
[REM] calendar: Remove useless is_attendee field
The field is never used and invisible in the view. Task 2126717 PR #42031 PR Enterprise odoo/enterprise#8006
Diffstat (limited to 'addons/calendar/models')
-rw-r--r--addons/calendar/models/calendar_event.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/addons/calendar/models/calendar_event.py b/addons/calendar/models/calendar_event.py
index a960b0e4adf..ece5aab156b 100644
--- a/addons/calendar/models/calendar_event.py
+++ b/addons/calendar/models/calendar_event.py
@@ -188,7 +188,6 @@ class Meeting(models.Model):
name = fields.Char('Meeting Subject', required=True)
- is_attendee = fields.Boolean('Attendee', compute='_compute_attendee')
attendee_status = fields.Selection(Attendee.STATE_SELECTION, string='Attendee Status', compute='_compute_attendee')
display_time = fields.Char('Event Time', compute='_compute_display_time')
start = fields.Datetime('Start', required=True, tracking=True, default=fields.Date.today, help="Start date of an event, without time for full days events")
@@ -206,6 +205,7 @@ class Meeting(models.Model):
show_as = fields.Selection([('free', 'Free'), ('busy', 'Busy')], 'Show Time as', default='busy', required=True)
# linked document
+ # LUL TODO use fields.Reference ?
res_id = fields.Integer('Document ID')
res_model_id = fields.Many2one('ir.model', 'Document Model', ondelete='cascade')
res_model = fields.Char('Document Model Name', related='res_model_id.model', readonly=True, store=True)
@@ -272,7 +272,6 @@ class Meeting(models.Model):
def _compute_attendee(self):
for meeting in self:
attendee = meeting._find_my_attendee()
- meeting.is_attendee = bool(attendee)
meeting.attendee_status = attendee.state if attendee else 'needsAction'
def _compute_display_time(self):