diff --git a/setup/web_hide_user_menu_item/odoo/addons/web_hide_user_menu_item b/setup/web_hide_user_menu_item/odoo/addons/web_hide_user_menu_item new file mode 120000 index 000000000..f17cbbee0 --- /dev/null +++ b/setup/web_hide_user_menu_item/odoo/addons/web_hide_user_menu_item @@ -0,0 +1 @@ +../../../../web_hide_user_menu_item \ No newline at end of file diff --git a/setup/web_hide_user_menu_item/setup.py b/setup/web_hide_user_menu_item/setup.py new file mode 100644 index 000000000..28c57bb64 --- /dev/null +++ b/setup/web_hide_user_menu_item/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +) diff --git a/web_hide_user_menu_item/README.rst b/web_hide_user_menu_item/README.rst new file mode 100644 index 000000000..45438df78 --- /dev/null +++ b/web_hide_user_menu_item/README.rst @@ -0,0 +1,84 @@ +======================= +Web Hide User Menu Item +======================= + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:2fe4d2ff8250345bbf79d61fdbc780864d1aa48652044e3328f55f5b6c4fb1b5 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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-LGPL--3-blue.png + :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html + :alt: License: LGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github + :target: https://github.com/OCA/web/tree/15.0/web_hide_user_menu_item + :alt: OCA/web +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/web-15-0/web-15-0-web_hide_user_menu_item + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png + :target: https://runboat.odoo-community.org/builds?repo=OCA/web&target_branch=15.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module hides documentation, support, shortcuts, account menu items on the top-right corner of the webclient. + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +Upon installing the module, user menu item presentation will be stripped down to look like the below image: + .. image:: https://raw.githubusercontent.com/OCA/web/15.0/web_hide_user_menu_item/static/img/userscreen.png + +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 to smash it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* Quartile Limited + +Contributors +~~~~~~~~~~~~ + +* `Quartile `__: + + * Aung Ko Ko Lin + +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_hide_user_menu_item/__init__.py b/web_hide_user_menu_item/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/web_hide_user_menu_item/__manifest__.py b/web_hide_user_menu_item/__manifest__.py new file mode 100644 index 000000000..64eaeee64 --- /dev/null +++ b/web_hide_user_menu_item/__manifest__.py @@ -0,0 +1,17 @@ +# Copyright 2022 Quartile Limited +# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl). +{ + "name": "Web Hide User Menu Item", + "category": "Hidden", + "version": "15.0.1.0.0", + "author": "Quartile Limited, Odoo Community Association (OCA)", + "website": "https://github.com/OCA/web", + "license": "LGPL-3", + "depends": ["web"], + "assets": { + "web.assets_qweb": [ + "web_hide_user_menu_item/static/src/webclient/user_menu/user_menu.xml", + ], + }, + "installable": True, +} diff --git a/web_hide_user_menu_item/readme/CONTRIBUTORS.rst b/web_hide_user_menu_item/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..cd4e44ca9 --- /dev/null +++ b/web_hide_user_menu_item/readme/CONTRIBUTORS.rst @@ -0,0 +1,3 @@ +* `Quartile `__: + + * Aung Ko Ko Lin diff --git a/web_hide_user_menu_item/readme/DESCRIPTION.rst b/web_hide_user_menu_item/readme/DESCRIPTION.rst new file mode 100644 index 000000000..33d1ed970 --- /dev/null +++ b/web_hide_user_menu_item/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +This module hides documentation, support, shortcuts, account menu items on the top-right corner of the webclient. diff --git a/web_hide_user_menu_item/readme/USAGE.rst b/web_hide_user_menu_item/readme/USAGE.rst new file mode 100644 index 000000000..e0d4168e7 --- /dev/null +++ b/web_hide_user_menu_item/readme/USAGE.rst @@ -0,0 +1,2 @@ +Upon installing the module, user menu item presentation will be stripped down to look like the below image: + .. image:: ../static/img/userscreen.png diff --git a/web_hide_user_menu_item/static/description/index.html b/web_hide_user_menu_item/static/description/index.html new file mode 100644 index 000000000..9edcedbb3 --- /dev/null +++ b/web_hide_user_menu_item/static/description/index.html @@ -0,0 +1,433 @@ + + + + + + +Web Hide User Menu Item + + + +
+

Web Hide User Menu Item

+ + +

Beta License: LGPL-3 OCA/web Translate me on Weblate Try me on Runboat

+

This module hides documentation, support, shortcuts, account menu items on the top-right corner of the webclient.

+

Table of contents

+ +
+

Usage

+
+
Upon installing the module, user menu item presentation will be stripped down to look like the below image:
+
https://raw.githubusercontent.com/OCA/web/15.0/web_hide_user_menu_item/static/img/userscreen.png +
+
+
+
+

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 to smash it by providing a detailed and welcomed +feedback.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Quartile Limited
  • +
+
+
+

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.

+

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_hide_user_menu_item/static/img/userscreen.png b/web_hide_user_menu_item/static/img/userscreen.png new file mode 100644 index 000000000..f0918d887 Binary files /dev/null and b/web_hide_user_menu_item/static/img/userscreen.png differ diff --git a/web_hide_user_menu_item/static/src/webclient/user_menu/user_menu.xml b/web_hide_user_menu_item/static/src/webclient/user_menu/user_menu.xml new file mode 100644 index 000000000..0c2f7350c --- /dev/null +++ b/web_hide_user_menu_item/static/src/webclient/user_menu/user_menu.xml @@ -0,0 +1,10 @@ + + + + + !element.hide and !['documentation', 'support', 'shortcuts', 'account'].includes(element.id) + + +