Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] calendar: close the popup after deletion #162411

Conversation

sura-odoo
Copy link
Contributor

Version:

16.0

Steps to reproduce:

  • open the Calendar module
  • make sure google sync is enabled
  • when to click on a event, a popup appears
  • when you press on delete, a confirmation message is shown but the popup is not closed

Issue:

The popup is not disappearing which allows the user to click multiple times on the delete option which can cause error when the user confirm the deletion as the user cannot delete a deleted record.

Cause:

​When google sync is enabled the event becomes achievable so when you delete the event instead of onDeleteEvent() function of CalendarCommonPopover component the onClickArchive() of AttendeeCalendarCommonPopover is called which do not handle the closing of the popup.

Solution:

In the onClickArchive() function, call the close function which is passed in the props of the parent component.

task-3875211


I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

Steps to reproduce:
- open the Calendar module
- make sure google sync is enabled
- when to click on a event, a popup appears
- when you press on delete, a confirmation message is shown but the popup is not
  closed

Issue:
The popup is not disappearing which allows the user to click multiple times on
the delete option which can cause error when the user confirm the deletion as
the user cannot delete a deleted record.

Cause:
​When google sync is enabled the event becomes achievable so when you delete
the event instead of onDeleteEvent() function of CalendarCommonPopover component
the onClickArchive() of AttendeeCalendarCommonPopover is called which do not
handle the closing of the popup.

Solution:
In the onClickArchive() function, call the close function which is passed
in the props of the parent component.

task-3875211
@robodoo
Copy link
Contributor

robodoo commented Apr 18, 2024

@C3POdoo C3POdoo added the RD research & development, internal work label Apr 18, 2024
@arj-odoo arj-odoo marked this pull request as ready for review May 30, 2024 08:48
@C3POdoo C3POdoo requested a review from a team May 30, 2024 08:50
@arj-odoo
Copy link
Contributor

arj-odoo commented Jun 6, 2024

@robodoo r+

robodoo pushed a commit that referenced this pull request Jun 6, 2024
Steps to reproduce:
- open the Calendar module
- make sure google sync is enabled
- when to click on a event, a popup appears
- when you press on delete, a confirmation message is shown but the popup is not
  closed

Issue:
The popup is not disappearing which allows the user to click multiple times on
the delete option which can cause error when the user confirm the deletion as
the user cannot delete a deleted record.

Cause:
​When google sync is enabled the event becomes achievable so when you delete
the event instead of onDeleteEvent() function of CalendarCommonPopover component
the onClickArchive() of AttendeeCalendarCommonPopover is called which do not
handle the closing of the popup.

Solution:
In the onClickArchive() function, call the close function which is passed
in the props of the parent component.

task-3875211

closes #162411

Signed-off-by: Arnaud Joset (arj) <arj@odoo.com>
@robodoo robodoo closed this Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RD research & development, internal work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants