-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[12.0] [MIG] web_tree_image #1100
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
Conversation
…t on arbitrary media subtype
In order to get visibility on https://www.odoo.com/apps the OCA board has decided to add the OCA as author of all the addons maintained as part of the association.
set resize="<width>,<height>" in the field tag definition to make the server return a resized version of the image. Useful for saving bandwidth when dealing with large images and to have uniform image sizes (aspect ratio is mantained by filling emtpy areas with transparent background)
@JayVora-SerpentCS @pedrobaeza Can you please review it? |
Odoo core now supports images in trees. The only missing part now is reading images from URLs, but this module is not needed as is. |
@pedrobaeza In base image size very large. that's why this module here useful, In module set image size with tooltip. |
@nikul-serpentcs but that's something you can limit size putting options and attributes AFAIK |
Yes, But Regarding v11 #1006 (comment) and #1006 (comment) we used size with tooltip CC @tarteo |
625491d
to
05bad0d
Compare
Hey @nikul-serpentcs, thank you for your Pull Request. It looks like some users haven't signed our Contributor License Agreement, yet.
Appreciation of efforts, |
@pedrobaeza @tarteo @oca-clabot All comment changes are Done, Can you please move forward. |
Ping |
Hi @pedrobaeza @tarteo @nikul-serpentcs May I know if there is anything pending with this PR? |
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.
@TimLai125 The README is still bad but the functionality is OK.
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.
Might be a picky comment, the tooltip image is not showed for the first hover, e.g. https://drive.google.com/file/d/1A3Y-Ag4Z508uXTKmocBO9Cz6-yCWOroo/view
This PR has the |
This seems the case, this needs to be fixed before merge unless this was also the case in 11.0. |
Co-Authored-By: Alexandre Díaz <[email protected]>
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.
LGTM 👍
This PR has the |
/ocabot merge |
This PR looks fantastic, let's merge it! |
Congratulations, your PR was merged at ede66ca. Thanks a lot for contributing to OCA. ❤️ PS: Don't worry if GitHub says there are unmerged commits: it is due to a rebase before merge. All commits of this PR have been merged into |
just a message to thank you for this excellent module, which covers exactly a recent need in my company. |
Display images and icons in tree view
This module defines a tree image widget, to be used with either binary fields or (function) fields of type character. Use
widget='image'
in your view definition. Optionally, set awidth
attribute. Default width is 30px.