diff --git a/ribbon_test_environment/AUTHORS.txt b/ribbon_test_environment/AUTHORS.txt new file mode 100644 index 00000000..69d30458 --- /dev/null +++ b/ribbon_test_environment/AUTHORS.txt @@ -0,0 +1 @@ +Francesco Apruzzese diff --git a/ribbon_test_environment/README.rst b/ribbon_test_environment/README.rst new file mode 100644 index 00000000..4f857bd3 --- /dev/null +++ b/ribbon_test_environment/README.rst @@ -0,0 +1,25 @@ +Ribbon Test Environment +======================= + +Mark a Test Environment with a red ribbon on the top left corner in every page + +.. image:: /ribbon_test_environment/static/description/screenshot.png + :alt: Screenshot + +Configuration +============= + + * No special setup + +Usage +===== + +To use this module, you need only to install it. After installation, a red ribbon will be visible on top left corner of every Odoo page + +Credits +======= + +Contributors +------------ + +* Francesco Apruzzese \ No newline at end of file diff --git a/ribbon_test_environment/__init__.py b/ribbon_test_environment/__init__.py new file mode 100644 index 00000000..5d2935f8 --- /dev/null +++ b/ribbon_test_environment/__init__.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Copyright (C) 2015 Francesco OpenCode Apruzzese () +# All Rights Reserved +# +# 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/ribbon_test_environment/__openerp__.py b/ribbon_test_environment/__openerp__.py new file mode 100644 index 00000000..ca6a3003 --- /dev/null +++ b/ribbon_test_environment/__openerp__.py @@ -0,0 +1,39 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Copyright (C) 2015 Francesco OpenCode Apruzzese () +# All Rights Reserved +# +# 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': "Ribbon Test Environment", + 'version': '0.1', + 'category': 'Web', + 'author': 'Francesco OpenCode Apruzzese', + 'website': 'https://it.linkedin.com/in/francescoapruzzese', + 'license': 'AGPL-3', + "depends": [ + 'web', + ], + "data": [ + 'view/base_view.xml', + ], + "update_xml": [], + "demo_xml": [], + "active": False, + "installable": True +} diff --git a/ribbon_test_environment/static/description/screenshot.png b/ribbon_test_environment/static/description/screenshot.png new file mode 100644 index 00000000..30245656 Binary files /dev/null and b/ribbon_test_environment/static/description/screenshot.png differ diff --git a/ribbon_test_environment/static/src/css/ribbon.css b/ribbon_test_environment/static/src/css/ribbon.css new file mode 100644 index 00000000..b5fbe402 --- /dev/null +++ b/ribbon_test_environment/static/src/css/ribbon.css @@ -0,0 +1,21 @@ +.test-ribbon{ + width: 200px; + background: #e43; + position: absolute; + top: 25px; + left: -50px; + text-align: center; + line-height: 50px; + letter-spacing: 1px; + color: #f0f0f0; + transform: rotate(-45deg); + -webkit-transform: rotate(-45deg); + z-index: 10000; + position: fixed; + box-shadow: 0 0 3px rgba(0,0,0,.3); + background: #e43; +} + +.test-ribbon b { + font-size: 20px; +} \ No newline at end of file diff --git a/ribbon_test_environment/view/base_view.xml b/ribbon_test_environment/view/base_view.xml new file mode 100644 index 00000000..98884d6b --- /dev/null +++ b/ribbon_test_environment/view/base_view.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + +