diff --git a/setup/_metapackage/VERSION.txt b/setup/_metapackage/VERSION.txt index 09e3014a..eec2e9a3 100644 --- a/setup/_metapackage/VERSION.txt +++ b/setup/_metapackage/VERSION.txt @@ -1 +1 @@ -12.0.20190620.0 \ No newline at end of file +12.0.20190625.0 \ No newline at end of file diff --git a/setup/_metapackage/setup.py b/setup/_metapackage/setup.py index 33d0df61..37a501b9 100644 --- a/setup/_metapackage/setup.py +++ b/setup/_metapackage/setup.py @@ -30,6 +30,7 @@ setuptools.setup( 'odoo12-addon-web_timeline', 'odoo12-addon-web_tree_duplicate', 'odoo12-addon-web_tree_dynamic_colored_field', + 'odoo12-addon-web_tree_image_tooltip', 'odoo12-addon-web_tree_many2one_clickable', 'odoo12-addon-web_tree_resize_column', 'odoo12-addon-web_widget_color', diff --git a/setup/web_tree_image_tooltip/odoo/addons/web_tree_image_tooltip b/setup/web_tree_image_tooltip/odoo/addons/web_tree_image_tooltip new file mode 120000 index 00000000..50c98a36 --- /dev/null +++ b/setup/web_tree_image_tooltip/odoo/addons/web_tree_image_tooltip @@ -0,0 +1 @@ +../../../../web_tree_image_tooltip \ No newline at end of file diff --git a/setup/web_tree_image_tooltip/setup.py b/setup/web_tree_image_tooltip/setup.py new file mode 100644 index 00000000..28c57bb6 --- /dev/null +++ b/setup/web_tree_image_tooltip/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +) diff --git a/web_tree_image_tooltip/README.rst b/web_tree_image_tooltip/README.rst new file mode 100644 index 00000000..f6633be9 --- /dev/null +++ b/web_tree_image_tooltip/README.rst @@ -0,0 +1,94 @@ +===================================== +Show images in tree views via tooltip +===================================== + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github + :target: https://github.com/OCA/web/tree/12.0/web_tree_image_tooltip + :alt: OCA/web +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/web-12-0/web-12-0-web_tree_image_tooltip + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png + :target: https://runbot.odoo-community.org/runbot/162/12.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module defines a images and icons in tree view via Tooltip. +Additionally, Default width with 30px. + + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +Mouse Hover in tree view image that time Tooltip effect. + + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues `_. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us smashing it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* Therp BV +* MONK Software +* Serpent Consulting Services Pvt. Ltd. + +Contributors +~~~~~~~~~~~~ + +* Stefan Rijnhart +* Leonardo Donelli +* Jay Vora +* Meet Dholakia +* Nikul Chaudhary + + +Other credits +~~~~~~~~~~~~~ + +* Serpent Consulting Services Pvt. Ltd. + + +Maintainers +~~~~~~~~~~~ + +This module is maintained by the OCA. + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use. + +This module is part of the `OCA/web `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/web_tree_image_tooltip/__init__.py b/web_tree_image_tooltip/__init__.py new file mode 100644 index 00000000..6d4f4bde --- /dev/null +++ b/web_tree_image_tooltip/__init__.py @@ -0,0 +1 @@ +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). diff --git a/web_tree_image_tooltip/__manifest__.py b/web_tree_image_tooltip/__manifest__.py new file mode 100644 index 00000000..b46057c1 --- /dev/null +++ b/web_tree_image_tooltip/__manifest__.py @@ -0,0 +1,25 @@ +# Copyright 2014 Therp BV (). +# Copyright 2015 Leonardo Donelli @ MONKSoftware +# Copyright 2013 Marcel van der Boom +# Copyright 2016 - TODAY Serpent Consulting Services Pvt. Ltd. +# () +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +{ + 'name': 'Show images in tree views via tooltip', + 'version': '12.0.1.0.0', + 'author': "Therp BV, " + "MONK Software, " + "Odoo Community Association (OCA), " + "Serpent Consulting Services Pvt. Ltd.", + 'website': 'https://github.com/OCA/web', + 'license': 'AGPL-3', + 'category': 'Web', + 'depends': [ + 'web', + ], + 'data': [ + 'view/assets.xml', + ], + 'installable': True, +} diff --git a/web_tree_image_tooltip/i18n/web_tree_image.pot b/web_tree_image_tooltip/i18n/web_tree_image.pot new file mode 100644 index 00000000..447d3bb3 --- /dev/null +++ b/web_tree_image_tooltip/i18n/web_tree_image.pot @@ -0,0 +1,14 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 11.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + diff --git a/web_tree_image_tooltip/i18n/web_tree_image_tooltip.pot b/web_tree_image_tooltip/i18n/web_tree_image_tooltip.pot new file mode 100644 index 00000000..d2e396f1 --- /dev/null +++ b/web_tree_image_tooltip/i18n/web_tree_image_tooltip.pot @@ -0,0 +1,14 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + diff --git a/web_tree_image_tooltip/readme/CONTRIBUTORS.rst b/web_tree_image_tooltip/readme/CONTRIBUTORS.rst new file mode 100644 index 00000000..24b755f9 --- /dev/null +++ b/web_tree_image_tooltip/readme/CONTRIBUTORS.rst @@ -0,0 +1,6 @@ +* Stefan Rijnhart +* Leonardo Donelli +* Jay Vora +* Meet Dholakia +* Nikul Chaudhary + diff --git a/web_tree_image_tooltip/readme/CREDITS.rst b/web_tree_image_tooltip/readme/CREDITS.rst new file mode 100644 index 00000000..7356ac20 --- /dev/null +++ b/web_tree_image_tooltip/readme/CREDITS.rst @@ -0,0 +1,2 @@ +* Serpent Consulting Services Pvt. Ltd. + diff --git a/web_tree_image_tooltip/readme/DESCRIPTION.rst b/web_tree_image_tooltip/readme/DESCRIPTION.rst new file mode 100644 index 00000000..092033b3 --- /dev/null +++ b/web_tree_image_tooltip/readme/DESCRIPTION.rst @@ -0,0 +1,3 @@ +This module defines a images and icons in tree view via Tooltip. +Additionally, Default width with 30px. + diff --git a/web_tree_image_tooltip/readme/USAGE.rst b/web_tree_image_tooltip/readme/USAGE.rst new file mode 100644 index 00000000..a8eeccbf --- /dev/null +++ b/web_tree_image_tooltip/readme/USAGE.rst @@ -0,0 +1,2 @@ +Mouse Hover in tree view image that time Tooltip effect. + diff --git a/web_tree_image_tooltip/static/description/icon.png b/web_tree_image_tooltip/static/description/icon.png new file mode 100644 index 00000000..3a0328b5 Binary files /dev/null and b/web_tree_image_tooltip/static/description/icon.png differ diff --git a/web_tree_image_tooltip/static/description/index.html b/web_tree_image_tooltip/static/description/index.html new file mode 100644 index 00000000..258d57d1 --- /dev/null +++ b/web_tree_image_tooltip/static/description/index.html @@ -0,0 +1,438 @@ + + + + + + +Show images in tree views via tooltip + + + +
+

Show images in tree views via tooltip

+ + +

Beta License: AGPL-3 OCA/web Translate me on Weblate Try me on Runbot

+

This module defines a images and icons in tree view via Tooltip. +Additionally, Default width with 30px.

+

Table of contents

+ +
+

Usage

+

Mouse Hover in tree view image that time Tooltip effect.

+
+
+

Bug Tracker

+

Bugs are tracked on GitHub Issues. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us smashing it by providing a detailed and welcomed +feedback.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • Therp BV
  • +
  • MONK Software
  • +
  • Serpent Consulting Services Pvt. Ltd.
  • +
+
+
+

Contributors

+ +
+
+

Other credits

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use.

+

This module is part of the OCA/web project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/web_tree_image_tooltip/static/src/js/tooltip.js b/web_tree_image_tooltip/static/src/js/tooltip.js new file mode 100644 index 00000000..874f0193 --- /dev/null +++ b/web_tree_image_tooltip/static/src/js/tooltip.js @@ -0,0 +1,19 @@ +odoo.define('web_tree_image_tooltip.web_tree_image_tooltip', + function (require) { + "use strict"; + + var ListRenderer = require('web.ListRenderer'); + ListRenderer.include({ + events: _.extend({}, ListRenderer.prototype.events, { + 'mouseover tbody tr td .o_field_image': '_onHoverRecord_img', + }), + _onHoverRecord_img: function (event) { + var img_src = + $(event.currentTarget).children('.img-fluid').attr('src') + $(event.currentTarget).tooltip({ + title: "", + delay: 0, + }).tooltip('show'); + } + }); +}) diff --git a/web_tree_image_tooltip/static/src/scss/common.scss b/web_tree_image_tooltip/static/src/scss/common.scss new file mode 100644 index 00000000..cc57053a --- /dev/null +++ b/web_tree_image_tooltip/static/src/scss/common.scss @@ -0,0 +1,3 @@ +.o_image_cell .o_field_image img{ + width:30px; +} diff --git a/web_tree_image_tooltip/view/assets.xml b/web_tree_image_tooltip/view/assets.xml new file mode 100644 index 00000000..d0d628f0 --- /dev/null +++ b/web_tree_image_tooltip/view/assets.xml @@ -0,0 +1,11 @@ + + + +