[IMP] calendar: calendar app should open on due date with pop-up opened
PURPOSE Calendar app should open with pop-up opened SPECIFICATIONS When activity of type meeting is edited(Reschedule), he gets a calendar app open on due date's week.The calendar app should be opened with the corresponding meeting highlighted (or the pop-up opened same as if the user has click on it) Task-2528115 closes odoo/odoo#72544 Signed-off-by: Arnaud Joset (arj) <arj@odoo.com>
This commit is contained in:
@@ -22,6 +22,8 @@ class MailActivity(models.Model):
|
||||
'default_activity_ids': [(6, 0, self.ids)],
|
||||
'default_partner_ids': self.user_id.partner_id.ids,
|
||||
'default_user_id': self.user_id.id,
|
||||
'initial_date': self.date_deadline,
|
||||
'default_calendar_event_id': self.calendar_event_id.id,
|
||||
}
|
||||
return action
|
||||
|
||||
|
||||
+3
@@ -36,6 +36,9 @@ export class AttendeeCalendarCommonRenderer extends CalendarCommonRenderer {
|
||||
const record = this.props.model.records[event.id];
|
||||
|
||||
if (record) {
|
||||
if (this.env.searchModel?.context?.default_calendar_event_id === parseInt(event.id)) {
|
||||
this.openPopover(info.el, record);
|
||||
}
|
||||
if (record.rawRecord.is_highlighted) {
|
||||
el.classList.add("o_event_highlight");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user