I want to change the word "Feedback" when I complete an meeting activity in oe_chatter but it doesn't work. I inherited MailActivity and my code for the function I thought it's the one looks like this but nothing's happen:
def action_feedback(self, feedback=False):
events = self.mapped('calendar_event_id')
feedback_header = "<b>" + str(datetime.date.today()) + " " + self.env['res.users'].search([('id', '=', self.env.uid)], limit=1).jm_initials + ": </b><br/>"
res = super(MailActivity, self).action_feedback(feedback)
if feedback:
for event in events:
description = event.description
description = '%s\n%s%s' % (description or '', _(feedback_header), feedback)
event.write({'description': description})
return res
I also found out it's already inherited in the calendar model.