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] web: prevent owl patch before action from ActionSwiper is done #173305

Closed
wants to merge 1 commit into from

Conversation

hubvd
Copy link
Contributor

@hubvd hubvd commented Jul 16, 2024

Steps to reproduce

In 17.2:

  • Install calendar,hr_homeworking
  • Use the emulated mobile view from the devtools
  • Go to calendar
  • Swipe horizontally to change the displayed week

=> A crash occurs here

https://github.com/odoo/odoo/blob/saas-17.2/addons/hr_homeworking/static/src/calendar/common/calendar_common_renderer.js#L108

Cause of the issue

The AttendeeCalendarCommonRenderer is rendered before the data for the next week has been loaded.

This means that this.props.model.worklocations has no entry for the parsedDate.

Solution

Await the action before modifying the ActionSwiper state

opw-4047632

@robodoo
Copy link
Contributor

robodoo commented Jul 16, 2024

Pull request status dashboard

@C3POdoo C3POdoo added the OE the report is linked to a support ticket (opw-...) label Jul 16, 2024
Steps to reproduce
==================

In 17.2:
- Install calendar,hr_homeworking
- Use the emulated mobile view from the devtools
- Go to calendar
- Swipe horizontally to change the displayed week

=> A crash occurs here

https://github.com/odoo/odoo/blob/saas-17.2/addons/hr_homeworking/static/src/calendar/common/calendar_common_renderer.js#L108

Cause of the issue
==================

The `AttendeeCalendarCommonRenderer` is rendered before the data for the
next week has been loaded.

This means that `this.props.model.worklocations` has no entry for the
`parsedDate`.

Solution
========

Await the action before modifying the ActionSwiper state

opw-4047632
@hubvd hubvd marked this pull request as ready for review July 25, 2024 08:43
@C3POdoo C3POdoo requested review from a team, aab-odoo and BastienFafchamps and removed request for a team July 25, 2024 08:45
@jpp-odoo
Copy link
Contributor

@robodoo r+

robodoo pushed a commit that referenced this pull request Jul 29, 2024
Steps to reproduce
==================

In 17.2:
- Install calendar,hr_homeworking
- Use the emulated mobile view from the devtools
- Go to calendar
- Swipe horizontally to change the displayed week

=> A crash occurs here

https://github.com/odoo/odoo/blob/saas-17.2/addons/hr_homeworking/static/src/calendar/common/calendar_common_renderer.js#L108

Cause of the issue
==================

The `AttendeeCalendarCommonRenderer` is rendered before the data for the
next week has been loaded.

This means that `this.props.model.worklocations` has no entry for the
`parsedDate`.

Solution
========

Await the action before modifying the ActionSwiper state

opw-4047632

closes #173305

Signed-off-by: Jorge Pinna Puissant (jpp) <jpp@odoo.com>
@robodoo robodoo closed this Jul 29, 2024
@fw-bot fw-bot deleted the 16.0-opw-4047632-huvw branch August 12, 2024 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OE the report is linked to a support ticket (opw-...)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants