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

[16.0][IMP] shopinvader_search_engine_update_image: update thumbnails images #1504

Conversation

qgroulard
Copy link
Contributor

When updating the image of a fs.product.image, the corresponding se.thumbnail images are not updated (because the ir.attachment record stays the same but with the new image).

@qgroulard
Copy link
Contributor Author

@lmignon What do you think ? Is this the good approach at the right place ?

res = super().write(vals)
if needs_update and "specific_image" in vals:
self._update_se_thumbnails()
return res
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we add this in the relation mixin? Because we will have to add thoses inside all submodels of the mixin

@sebastienbeau sebastienbeau added this to the 16.0 milestone Jun 3, 2024
@qgroulard qgroulard closed this Jun 4, 2024
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