odoo/odoo#197665
Created by fw-bot
Merged
at 35c14f2bfdee707d49f4fbe8c3b0cb4622344605
Statuses:
- legal/cla: Contributor License Agreement check
- ci/runbot: Odoo Test Suite
- ci/upgrade_enterprise: Test upgrades for enterprise master
- ci/style: Optional style check. Ignore it only if strictly necessary.
- ci/security: Required security check. Can only be ignored by security team.
- label
- odoo-dev:master-16.0-opw-4378605-related_cached_images-huvw-416078-fw
- head
- 44804bf272eca7be75306907553ccfa59a79dcd7
- merged
- 3 months ago by Bugfix, Hubert Van De Walle
odoo/odoo | |
---|---|
16.0 | #192036 |
17.0 | #196752 |
saas-17.2 | #196843 |
saas-17.4 | #197140 |
18.0 | #197532 |
saas-18.1 | #197646 |
saas-18.2 | |
saas-18.3 | |
master | #197665 |
[FW][FIX] web: don't use last record update as unique for related images
Steps to reproduce
- Install web_studio,mrp
- Go to Manufacturing > Operations > Manufacturing Orders
- Open studio
- Add a related field
- Select Product > Image
- Change the widget to the ImageField
- Exit studio
- Open any record
- Go to the product
- Edit the image
- Go back to the list view => The old image is still displayed
Cause of the issue
We add a unique parameter in the image url with the last record update. In the case of a related field, the record has not been updated even if the image has changed.
Solution
We still need to pass a unique value in the URL because browser will not fetch twice the same URL in the same session. In that case, we can simply pass a random value