-
Notifications
You must be signed in to change notification settings - Fork 12
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
[3305][15.0][MIG] product_carousel_image_attachment: Migration to 15.0 #324
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AungKoKoLin1997 Can you please explain how image resizing is irrelevant now, since it was once of the key concerns not to allow uploading large image files to keep the data volume subdued.
@@ -0,0 +1,2 @@ | |||
# Part of Odoo. See LICENSE file for full copyright and licensing details. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Part of Odoo. See LICENSE file for full copyright and licensing details. |
This module does when an image (.jpg/.png/.gif/.bmp) is attached to a product, create a | ||
corresponding product.image record for the attached file. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This module does when an image (.jpg/.png/.gif/.bmp) is attached to a product, create a | |
corresponding product.image record for the attached file. | |
This module does the following: | |
- When an image (.jpg/.png/.gif/.bmp) is attached to a product, create a corresponding product.image record | |
for the attached file. |
I thought image_resize_image() is not required anymore because product_template_image_ids and product_variant_image_ids use the image field type and they will resize themself. https://www.odoo.com/forum/help-1/which-function-odoo-13-replace-image-resize-image-164007 |
@AungKoKoLin1997 If I'm not mistaken, the data volume will increase by x4 or so. Can you please check and verify if this is the correct understanding? |
Yes, the volume will increased because when we add value to image_1920, system will resize the image and stored in relevant fields. |
@AungKoKoLin1997 OK, we may wait and see how things will go with attachment_s3. If x4 data is not much a concern (i.e. cost impact is neglegible) then we could abandon the resizing logic. |
@AungKoKoLin1997` I got that error when I deplicate res_user The above exception was the direct cause of the following exception: Traceback (most recent call last): |
@kanda999 I fixed it. Thanks for the feedback. |
68a801f
to
99d0347
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have done functional test for this module and it works well. and about the image size for zoom in the image, as discussed with customer that the image only can be zoomed in for image with 1025 x 1025 in this v15.
This PR is used by rmm-custom. qrtl/rmm-custom#79 |
3305