-
- Downloads
[FIX] calendar : Creator of meeting with quick_create was never found
Issue: When creating a Meeting with quick_create (click and slide), the creator was not invited but is attending, since he was not invited, he cannot change his status to Accept, Decline, or Uncertain
Steps to reproduce :
1) Go to Calendar (On the main view : Calendar view)
2) Click to create a meeting, enter a Summary and press create
3) Click on the meeting you just created
3a) Optional: Edit the meeting and go to Invitations tab, you are not invited.
4) Click on "Needs Action" to change your attendee state to Accept
5) Refresh the page
6) Click on the same meeting
6a) Optional: Edit the meeting and go to Invitations tab, you are still not invited.
7) Bug, your attendee state is still "Needs Action"
Why is that a bug:
With quick_create, there is no partner_ids given to the vals_list of create(), therefore _default_partners the default is triggered on the creation of the event that adds self.env.user.partner_id to the partner_ids.
However, for attendee_ids, there was no default, so if the key attendee_ids isn't present, nothing is done, which is what happens on quick_create since no attendee is added since we add them via the partner_ids (line 714) that isn't present
Not an attendee means no attendee_status
Side Note: The business flow was already that way, since the self.env.user.partner_id was added by the default of partner_ids in quick_create or in normal create. The problem was that the attendees_id of val_list on line 714 was taken from the partner_ids before the default of partner_ids was triggered.
On the normal create, it wasn't a problem since the meeting creator partner_id is filled when loading the normal create view, but on quick_create that view is never loaded up, so the default of partner_ids is created on line 721 when the event is created, adding the current user in the partner_ids of the event, but without modifying the attendee_ids
opw-2538295
closes odoo/odoo#74829
Signed-off-by:
Arnaud Joset <arj-odoo@users.noreply.github.com>
Showing
- addons/calendar/models/calendar_event.py 3 additions, 3 deletionsaddons/calendar/models/calendar_event.py
- addons/calendar/static/src/js/calendar_renderer.js 10 additions, 0 deletionsaddons/calendar/static/src/js/calendar_renderer.js
- addons/calendar/static/src/xml/base_calendar.xml 1 addition, 1 deletionaddons/calendar/static/src/xml/base_calendar.xml
Loading
Please register or sign in to comment