From 1364c48548d07a78ca7a087b10aa14e23d2b73a2 Mon Sep 17 00:00:00 2001 From: "Viktors Lipskis (vili)" Date: Thu, 13 Apr 2023 10:58:05 +0000 Subject: [PATCH] [FIX] calendar: fix dynamic repositioning The reposition() method got a new parameter in #116499. Many2ManyExpandable now passes the necessary argument to reposition(). closes odoo/odoo#118459 Signed-off-by: Arnaud Joset --- .../static/src/views/fields/many2many_attendee_expandable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/calendar/static/src/views/fields/many2many_attendee_expandable.js b/addons/calendar/static/src/views/fields/many2many_attendee_expandable.js index b02acd77f8a..de98773de90 100644 --- a/addons/calendar/static/src/views/fields/many2many_attendee_expandable.js +++ b/addons/calendar/static/src/views/fields/many2many_attendee_expandable.js @@ -20,7 +20,7 @@ export class Many2ManyAttendeeExpandable extends Many2ManyAttendee { const popover = document.querySelector(".o_field_many2manyattendeeexpandable") .closest(".o_popover"); const targetElement = document.querySelector(`.fc-event[data-event-id="${this.props.record.resId}"]`); - reposition(targetElement, popover, { position: "right", margin: 0 }); + reposition(targetElement, popover, null, { position: "right", margin: 0 }); }, () => [ this.state.expanded ]); }