-
- Downloads
[FIX] web: image_field: should properly load the new image
**TO REPRODUCE** - open contacts - open a contact with a picture (for ex, douglas fletcher) - change the picture => new picture is displayed - click on cloud icon to force save => new picture is displayed - repeat: After repeating, the old picture will be displayed. **SOLUTION** Before this change, `getUrl` is bound to the rendering context instead of the component and it will write to the rendering context. This is introduced in this commit: https://github.com/odoo/owl/commit/df59ec49aefce2e0913fdc1792d42b9680fb28b6 The following excerpt from the mentioned commit explains: "A side-effect of this change is that now the rendering context is no longer the instance of the component by default, but is always an object with the component in its prototype chain." To make sure that `getUrl` is properly bound to the component, we should call it from the `this` of the rendering context. closes odoo/odoo#115692 Task-id: 3204546 Signed-off-by:Aaron Bohy (aab) <aab@odoo.com>
Please register or sign in to comment