diff --git a/base_debug4all/README.rst b/base_debug4all/README.rst new file mode 100644 index 000000000..c737e96af --- /dev/null +++ b/base_debug4all/README.rst @@ -0,0 +1,49 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :alt: License: AGPL-3 +========= +Debug4all +========= + +This module turns on the full debug menu for all users. + +Note: This module only *shows* debug options for all users. If a user without the necessary privileges tries to execute an action she's not permitted to execute, it will result in ugly exceptions. + +Usage +===== + +When in debug mode, enjoy the full debug menu for users different than admin. + +.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas + :alt: Try me on Runbot + :target: https://runbot.odoo-community.org/runbot/149/8.0 + +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 +`here `_. + +Credits +======= + +Contributors +------------ + +* Holger Brunn + +Maintainer +---------- + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +This module is maintained by the OCA. + +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. + +To contribute to this module, please visit http://odoo-community.org. diff --git a/base_debug4all/__init__.py b/base_debug4all/__init__.py new file mode 100644 index 000000000..2ab31ff0c --- /dev/null +++ b/base_debug4all/__init__.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# This module copyright (C) 2015 Therp BV . +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################## diff --git a/base_debug4all/__openerp__.py b/base_debug4all/__openerp__.py new file mode 100644 index 000000000..b37c841de --- /dev/null +++ b/base_debug4all/__openerp__.py @@ -0,0 +1,34 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# This module copyright (C) 2015 Therp BV . +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################## +{ + "name": "Debug4all", + "version": "8.0.1.0.0", + "author": "Therp BV,Odoo Community Association (OCA)", + "license": "AGPL-3", + "category": "Hidden/Tools", + "summary": "Shows full debug options for all users", + "depends": [ + 'web', + ], + "qweb": [ + 'static/src/xml/base.xml', + ], + "installable": True, +} diff --git a/base_debug4all/static/description/icon.png b/base_debug4all/static/description/icon.png new file mode 100644 index 000000000..3a0328b51 Binary files /dev/null and b/base_debug4all/static/description/icon.png differ diff --git a/base_debug4all/static/src/xml/base.xml b/base_debug4all/static/src/xml/base.xml new file mode 100644 index 000000000..75f5e569c --- /dev/null +++ b/base_debug4all/static/src/xml/base.xml @@ -0,0 +1,8 @@ + + + + + jQuery(this).attr('t-if', 'true'); + + +