Skip to content

Conversation

@dtda-odoo
Copy link

@dtda-odoo dtda-odoo commented Jan 9, 2026

Steps to Reproduce:

  1. Open the website module.
  2. Open the media upload dialog to upload an image by either double-clicking the logo or replacing the existing image.
  3. Upload a large file.
  4. Abort the upload before it finishes by clicking the 'Discard' button in the media dialog box.
    After performing these steps, a traceback is observed.

Before this commit:

  • Image upload failures would throw uncaught exceptions.
  • These exceptions would interrupt the flow and result in a poor user experience with no clear feedback.
  • Even after clicking the discard button, the image was still getting uploaded.

After this commit:

  • Each upload is wrapped in a try-catch-finally block.
  • If an error occurs, it no longer breaks the flow.
  • The error is logged to the console for debugging purposes.
  • Discard button stops the upload of the image.

task-4752497

@robodoo
Copy link

robodoo commented Jan 9, 2026

This PR targets the un-managed branch odoo-dev/odoo:17.0-fix-image-upload-error-handling-dtda, it needs to be retargeted before it can be merged.

@dtda-odoo dtda-odoo force-pushed the 17.0-fix-image-upload-error-handling-dtda-v3 branch 2 times, most recently from 9ba14fa to da12159 Compare January 9, 2026 12:43
@dtda-odoo dtda-odoo force-pushed the 17.0-fix-image-upload-error-handling-dtda-v3 branch from da12159 to d0e0a80 Compare January 9, 2026 13:18
Steps to Reproduce:
1. Open the website module.
2. Open the media upload dialog to upload an image by either
double-clicking the logo or replacing the existing image.
3. Upload a large file.
4. Abort the upload before it finishes by clicking the 'Discard'
button in the media dialog box.
After performing these steps, a traceback is observed.

Before this commit:
- Image upload failures would throw uncaught exceptions.
- These exceptions would interrupt the flow and result in a poor user
experience with no clear feedback.
- Even after clicking the discard button the image was still
getting uploaded.

After this commit:
- Each upload is wrapped in a try-catch-finally block.
- If an error occurs, it no longer breaks the flow.
- The error is logged to the console for debugging purposes.
- Discard button stops the upload of image.

task-4752497
@dtda-odoo dtda-odoo force-pushed the 17.0-fix-image-upload-error-handling-dtda-v3 branch from d0e0a80 to 4f8229f Compare January 12, 2026 05:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants