diff --git a/setup/web_unclickable/odoo/__init__.py b/setup/web_unclickable/odoo/__init__.py new file mode 100644 index 000000000..de40ea7ca --- /dev/null +++ b/setup/web_unclickable/odoo/__init__.py @@ -0,0 +1 @@ +__import__('pkg_resources').declare_namespace(__name__) diff --git a/setup/web_unclickable/odoo/addons/__init__.py b/setup/web_unclickable/odoo/addons/__init__.py new file mode 100644 index 000000000..de40ea7ca --- /dev/null +++ b/setup/web_unclickable/odoo/addons/__init__.py @@ -0,0 +1 @@ +__import__('pkg_resources').declare_namespace(__name__) diff --git a/setup/web_unclickable/odoo/addons/web_unclickable b/setup/web_unclickable/odoo/addons/web_unclickable new file mode 120000 index 000000000..3985eed32 --- /dev/null +++ b/setup/web_unclickable/odoo/addons/web_unclickable @@ -0,0 +1 @@ +../../../../web_unclickable \ No newline at end of file diff --git a/setup/web_unclickable/setup.py b/setup/web_unclickable/setup.py new file mode 100644 index 000000000..28c57bb64 --- /dev/null +++ b/setup/web_unclickable/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +) diff --git a/web_unclickable/README.rst b/web_unclickable/README.rst new file mode 100644 index 000000000..12234224a --- /dev/null +++ b/web_unclickable/README.rst @@ -0,0 +1,90 @@ +=============== +Web Unclickable +=============== + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! 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/10.0/web_unclickable + :alt: OCA/web +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/web-10-0/web-10-0-web_unclickable + :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/10.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This is a technical module intended to help protecting some unwanted clicks. + +e.g.: on an 'Archive' button. + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +* Define the 'oe_unclickable' on the element. + +Note: Pay attention to existing classes. + +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 +~~~~~~~ + +* ACSONE SA/NV + +Contributors +~~~~~~~~~~~~ + +* Denis Roussel + +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. + +.. |maintainer-rousseldenis| image:: https://github.com/rousseldenis.png?size=40px + :target: https://github.com/rousseldenis + :alt: rousseldenis + +Current `maintainer `__: + +|maintainer-rousseldenis| + +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_unclickable/__init__.py b/web_unclickable/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/web_unclickable/__manifest__.py b/web_unclickable/__manifest__.py new file mode 100644 index 000000000..5c0477633 --- /dev/null +++ b/web_unclickable/__manifest__.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +# Copyright 2019 ACSONE SA/NV +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + 'name': 'Web Unclickable', + 'summary': """ + This module allows to define a class on an element to disable + click event""", + 'version': '10.0.1.0.0', + 'license': 'AGPL-3', + 'maintainers': ['rousseldenis'], + 'author': 'ACSONE SA/NV,Odoo Community Association (OCA)', + 'website': 'https://github.com/OCA/web', + 'depends': [ + 'web', + ], + 'data': [ + 'views/web_template.xml', + ], +} diff --git a/web_unclickable/readme/CONTRIBUTORS.rst b/web_unclickable/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..9179ee4b8 --- /dev/null +++ b/web_unclickable/readme/CONTRIBUTORS.rst @@ -0,0 +1 @@ +* Denis Roussel diff --git a/web_unclickable/readme/DESCRIPTION.rst b/web_unclickable/readme/DESCRIPTION.rst new file mode 100644 index 000000000..b72162d8d --- /dev/null +++ b/web_unclickable/readme/DESCRIPTION.rst @@ -0,0 +1,3 @@ +This is a technical module intended to help protecting some unwanted clicks. + +e.g.: on an 'Archive' button. diff --git a/web_unclickable/readme/USAGE.rst b/web_unclickable/readme/USAGE.rst new file mode 100644 index 000000000..c774ad6e7 --- /dev/null +++ b/web_unclickable/readme/USAGE.rst @@ -0,0 +1,3 @@ +* Define the 'oe_unclickable' on the element. + +Note: Pay attention to existing classes. \ No newline at end of file diff --git a/web_unclickable/static/description/icon.png b/web_unclickable/static/description/icon.png new file mode 100644 index 000000000..3a0328b51 Binary files /dev/null and b/web_unclickable/static/description/icon.png differ diff --git a/web_unclickable/static/description/index.html b/web_unclickable/static/description/index.html new file mode 100644 index 000000000..fcba749ff --- /dev/null +++ b/web_unclickable/static/description/index.html @@ -0,0 +1,430 @@ + + + + + + +Web Unclickable + + + +
+

Web Unclickable

+ + +

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

+

This is a technical module intended to help protecting some unwanted clicks.

+

e.g.: on an ‘Archive’ button.

+

Table of contents

+ +
+

Usage

+
    +
  • Define the ‘oe_unclickable’ on the element.
  • +
+

Note: Pay attention to existing classes.

+
+
+

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

+
    +
  • ACSONE SA/NV
  • +
+
+
+

Contributors

+ +
+
+

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.

+

Current maintainer:

+

rousseldenis

+

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_unclickable/static/src/css/web_template.css b/web_unclickable/static/src/css/web_template.css new file mode 100644 index 000000000..10aca88be --- /dev/null +++ b/web_unclickable/static/src/css/web_template.css @@ -0,0 +1,3 @@ +.oe_unclickable { + pointer-events:none; +} diff --git a/web_unclickable/views/web_template.xml b/web_unclickable/views/web_template.xml new file mode 100644 index 000000000..1a23e1da6 --- /dev/null +++ b/web_unclickable/views/web_template.xml @@ -0,0 +1,8 @@ + + + +