Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0] [MIG] web_environment_ribbon #2311

Merged
merged 58 commits into from
Oct 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
1c1dad5
[IMP] Change module name and every references to old name module in path
OpenCode Jul 27, 2015
1bab1f1
[IMP] web_environment_ribbon: Improved README
pedrobaeza Jul 29, 2015
fc93a6f
ADD web_environment_ribbon - Minor improvement of transparency to all…
ddico Aug 5, 2015
284448a
Add missing default oca icons
yvaucher Aug 18, 2015
4a2ab05
[IMP] web_environment_ribbon: Add icon
pedrobaeza Aug 31, 2015
2f7da0c
[IMP] web_environment_ribbon: conditional ribbon
sylvainc Sep 17, 2015
ee7d7dd
[IMP] Add default 'ribbon.name' configuration parameter
sylvainc Sep 22, 2015
04fd4c0
[FIX] web_environment_ribbon : Fix menu_navbar overlap
hparfr Sep 16, 2015
dc6bacf
[IMP] web_environment_ribbon increase margin
hparfr Sep 23, 2015
6bd87e7
[UPD] prefix versions with 8.0
sbidoul Oct 9, 2015
e814939
[MIG] Make modules uninstallable
pedrobaeza Oct 14, 2015
8ca8b06
[IMP] ribbon color customization (#347)
jabibi Apr 25, 2016
c4592a0
[MIG] web_environment_ribbon
antespi Jul 20, 2016
b5a88ee
[IMP] Make web_environment_ribbon more generic
Sep 16, 2016
2aac57c
[MIG] Migrated web_environment_ribbon to v10.0
pedrobaeza Oct 6, 2016
eba11b5
[9.0] [IMP] Web Environment Ribbon: support variables in ribbon name …
ThomasBinsfeld May 31, 2017
c23c945
[IMP] ribbon: no need for the backend model to have a table
sbidoul Jul 2, 2017
8e7d040
[IMP] ribbon: better extensibility
sbidoul Jul 2, 2017
e496aef
OCA Transbot updated translations from Transifex
oca-transbot Jul 15, 2017
9bb4c1c
[MIG] web_environment_ribbon: Migration to 11.0
xavierjimenez Nov 13, 2017
70b8845
[FIX][11.0] web_environment_ribbon (#806)
xavierjimenez Nov 21, 2017
148c1e8
web_environment_ribbon: import from odoo instead of openerp.
jladage Apr 24, 2018
34a4011
[UPD] Update web_environment_ribbon.pot
oca-travis Jun 24, 2018
7a50334
Translated using Weblate (Portuguese (Brazil))
Aug 3, 2018
9e76977
[MIG] web_environment_ribbon: Migration to 12.0
tarteo Oct 2, 2018
4efc488
[UPD] README.rst
OCA-git-bot Oct 9, 2018
44a1ee2
Added translation using Weblate (Spanish)
eduardgm Aug 4, 2019
44538fb
Translated using Weblate (Spanish)
eduardgm Aug 4, 2019
84c4440
Added translation using Weblate (Portuguese)
pedrocs-exo Aug 12, 2019
68a9c0e
Translated using Weblate (Portuguese)
pedrocs-exo Aug 12, 2019
111b11d
Added translation using Weblate (Chinese (Simplified))
liweijie0812 Sep 1, 2019
c8a4789
Translated using Weblate (Chinese (Simplified))
liweijie0812 Sep 1, 2019
f6f0883
[MIG] web_environment_ribbon: Migration to 13.0
lembregtse Sep 30, 2019
ae1de3b
[UPD] Update web_environment_ribbon.pot
oca-travis Oct 11, 2019
29202aa
[UPD] README.rst
OCA-git-bot Oct 11, 2019
3948b91
pre-commit, black, isort
OCA-git-bot Oct 12, 2019
45ba266
[FIX] web_environment_ribbon js warnings
emagdalenaC2i Oct 14, 2019
085268b
[FIX] web_dialog_size js warnings
emagdalenaC2i Oct 14, 2019
9429c42
[IMP] pre-commit run after update
Jan 24, 2020
f97a490
Added translation using Weblate (Catalan)
eduardgm Feb 2, 2020
9d89dc0
Translated using Weblate (Catalan)
eduardgm Feb 2, 2020
948e979
pre-commit update: prettier xml indent
sbidoul Mar 2, 2020
8569bce
[UPD] README.rst
OCA-git-bot Jul 13, 2020
64049b8
[UPD] README.rst
OCA-git-bot Jul 13, 2020
0d7f204
Translated using Weblate (German)
didierdonze Jul 22, 2020
0325f9c
[IMP] web_environment_ribbon: Prettier
fuentes73 Oct 16, 2020
61a85c5
[14.0][MIG] web_environment_ribbon: Migration to 14.0
fuentes73 Oct 16, 2020
8fdebae
[UPD] Update web_environment_ribbon.pot
oca-travis Oct 17, 2020
41276de
[UPD] README.rst
OCA-git-bot Oct 17, 2020
80c1118
Translated using Weblate (Dutch)
bosd Apr 22, 2021
f2c585b
Added translation using Weblate (Dutch)
bosd May 17, 2021
1f9d016
Translated using Weblate (Dutch)
bosd May 17, 2021
fb8423b
[MIG] web_environment_ribbon: Migration to 15.0
ap-wtioit Oct 13, 2021
fce9051
[IMP] web_environment_ribbon: hide the ribbon when navigation is in use
ap-wtioit Oct 13, 2021
0618442
[UPD] Update web_environment_ribbon.pot
Nov 15, 2021
58a6448
[UPD] README.rst
OCA-git-bot Nov 15, 2021
ff2879c
[15.0][MIG] web_widget_bokeh_chart
ChrisOForgeFlow Dec 10, 2021
7355830
[MIG] web_environment_ribbon: Migration to 16.0
baimont Aug 26, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions setup/web_environment_ribbon/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
98 changes: 98 additions & 0 deletions web_environment_ribbon/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
======================
Web Environment Ribbon
======================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! 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/16.0/web_environment_ribbon
:alt: OCA/web
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_environment_ribbon
: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/16.0
:alt: Try me on Runbot

|badge1| |badge2| |badge3| |badge4| |badge5|

Mark a Test Environment with a red ribbon on the top left corner in every page

**Table of contents**

.. contents::
:local:

Configuration
=============

* You can change the ribbon's name ("TEST") by editing the default system
parameter "ribbon.name" (in the menu Settings > Parameters > System
Parameters) To hide the ribbon, set this parameter to "False" or delete it.
* You can customize the ribbon color and background color through system
parameters: "ribbon.color", "ribbon.background.color". Fill with valid CSS
colors or just set to "False" to use default values.
* You can add the database name in the ribbon by adding "{db_name}" in the
system parameter "ribbon.name".

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 backend page

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/web/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 <https://github.com/OCA/web/issues/new?body=module:%20web_environment_ribbon%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Credits
=======

Authors
~~~~~~~

* Francesco OpenCode Apruzzese
* Tecnativa

Contributors
~~~~~~~~~~~~

* Francesco Apruzzese <[email protected]>
* Javi Melendez <[email protected]>
* Antonio Espinosa <[email protected]>
* Thomas Binsfeld <[email protected]>
* Xavier Jiménez <[email protected]>
* Dennis Sluijk <[email protected]>
* Eric Lembregts <[email protected]>

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 <https://github.com/OCA/web/tree/16.0/web_environment_ribbon>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions web_environment_ribbon/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
27 changes: 27 additions & 0 deletions web_environment_ribbon/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Copyright 2015 Francesco OpenCode Apruzzese <[email protected]>
# Copyright 2016 Antonio Espinosa <[email protected]>
# Copyright 2017 Thomas Binsfeld <[email protected]>
# Copyright 2017 Xavier Jiménez <[email protected]>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Web Environment Ribbon",
"version": "16.0.1.0.0",
"category": "Web",
"author": "Francesco OpenCode Apruzzese, "
"Tecnativa, "
"Odoo Community Association (OCA)",
"website": "https://github.com/OCA/web",
"license": "AGPL-3",
"depends": ["web"],
"data": [
"data/ribbon_data.xml",
],
"auto_install": False,
"installable": True,
"assets": {
"web.assets_common": [
"web_environment_ribbon/static/**/*",
],
},
}
20 changes: 20 additions & 0 deletions web_environment_ribbon/data/ribbon_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2015 Francesco OpenCode Apruzzese <[email protected]>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo noupdate="1">
<!-- Add ribbon name default configuration parameter -->
<record id="default_ribbon_name" model="ir.config_parameter">
<field name="key">ribbon.name</field>
<field name="value"><![CDATA[TEST<br/>({db_name})]]></field>
</record>
<!-- Add ribbon color configuration parameter -->
<record id="set_ribbon_color" model="ir.config_parameter">
<field name="key">ribbon.color</field>
<field name="value">#f0f0f0</field>
</record>
<!-- Add ribbon background color configuration parameter -->
<record id="set_ribbon_background_color" model="ir.config_parameter">
<field name="key">ribbon.background.color</field>
<field name="value">rgba(255,0,0,.6)</field>
</record>
</odoo>
37 changes: 37 additions & 0 deletions web_environment_ribbon/i18n/ca.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_environment_ribbon
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 13.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2020-02-02 22:13+0000\n"
"Last-Translator: eduardgm <[email protected]>\n"
"Language-Team: none\n"
"Language: ca\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 3.10\n"

#. module: web_environment_ribbon
#: model:ir.model.fields,field_description:web_environment_ribbon.field_web_environment_ribbon_backend__display_name
msgid "Display Name"
msgstr "Nom mostrat"

#. module: web_environment_ribbon
#: model:ir.model.fields,field_description:web_environment_ribbon.field_web_environment_ribbon_backend__id
msgid "ID"
msgstr "ID"

#. module: web_environment_ribbon
#: model:ir.model.fields,field_description:web_environment_ribbon.field_web_environment_ribbon_backend____last_update
msgid "Last Modified on"
msgstr "Última modificació el"

#. module: web_environment_ribbon
#: model:ir.model,name:web_environment_ribbon.model_web_environment_ribbon_backend
msgid "Web Environment Ribbon Backend"
msgstr "Backend \"Web Environment Ribbon\""
40 changes: 40 additions & 0 deletions web_environment_ribbon/i18n/de.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_environment_ribbon
#
# Translators:
# Niki Waibel <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-07-13 16:06+0000\n"
"PO-Revision-Date: 2020-07-22 12:19+0000\n"
"Last-Translator: c2cdidier <[email protected]>\n"
"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n"
"Language: de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 3.10\n"

#. module: web_environment_ribbon
#: model:ir.model.fields,field_description:web_environment_ribbon.field_web_environment_ribbon_backend__display_name
msgid "Display Name"
msgstr "Anzeigename"

#. module: web_environment_ribbon
#: model:ir.model.fields,field_description:web_environment_ribbon.field_web_environment_ribbon_backend__id
msgid "ID"
msgstr "ID"

#. module: web_environment_ribbon
#: model:ir.model.fields,field_description:web_environment_ribbon.field_web_environment_ribbon_backend____last_update
msgid "Last Modified on"
msgstr "Zuletzt geändert am"

#. module: web_environment_ribbon
#: model:ir.model,name:web_environment_ribbon.model_web_environment_ribbon_backend
msgid "Web Environment Ribbon Backend"
msgstr "Web-Umgebung Ribbon-Backend"
37 changes: 37 additions & 0 deletions web_environment_ribbon/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_environment_ribbon
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2019-08-04 17:44+0000\n"
"Last-Translator: eduardgm <[email protected]>\n"
"Language-Team: none\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 3.7.1\n"

#. module: web_environment_ribbon
#: model:ir.model.fields,field_description:web_environment_ribbon.field_web_environment_ribbon_backend__display_name
msgid "Display Name"
msgstr "Nombre mostrado"

#. module: web_environment_ribbon
#: model:ir.model.fields,field_description:web_environment_ribbon.field_web_environment_ribbon_backend__id
msgid "ID"
msgstr "ID"

#. module: web_environment_ribbon
#: model:ir.model.fields,field_description:web_environment_ribbon.field_web_environment_ribbon_backend____last_update
msgid "Last Modified on"
msgstr "Última modificación el"

#. module: web_environment_ribbon
#: model:ir.model,name:web_environment_ribbon.model_web_environment_ribbon_backend
msgid "Web Environment Ribbon Backend"
msgstr "Backend \"Web Environment Ribbon\""
40 changes: 40 additions & 0 deletions web_environment_ribbon/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_environment_ribbon
#
# Translators:
# OCA Transbot <[email protected]>, 2017
# Quentin THEURET <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-07-26 02:44+0000\n"
"PO-Revision-Date: 2017-07-26 02:44+0000\n"
"Last-Translator: Quentin THEURET <[email protected]>, 2017\n"
"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"

#. module: web_environment_ribbon
#: model:ir.model.fields,field_description:web_environment_ribbon.field_web_environment_ribbon_backend__display_name
msgid "Display Name"
msgstr "Nom affiché"

#. module: web_environment_ribbon
#: model:ir.model.fields,field_description:web_environment_ribbon.field_web_environment_ribbon_backend__id
msgid "ID"
msgstr "ID"

#. module: web_environment_ribbon
#: model:ir.model.fields,field_description:web_environment_ribbon.field_web_environment_ribbon_backend____last_update
msgid "Last Modified on"
msgstr "Dernière modification le"

#. module: web_environment_ribbon
#: model:ir.model,name:web_environment_ribbon.model_web_environment_ribbon_backend
msgid "Web Environment Ribbon Backend"
msgstr "Backend du bandeau de l'environnement Web"
40 changes: 40 additions & 0 deletions web_environment_ribbon/i18n/hr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_environment_ribbon
#
# Translators:
# Bole <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-07-13 16:06+0000\n"
"PO-Revision-Date: 2017-07-13 16:06+0000\n"
"Last-Translator: Bole <[email protected]>, 2017\n"
"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n"
"Language: hr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"

#. module: web_environment_ribbon
#: model:ir.model.fields,field_description:web_environment_ribbon.field_web_environment_ribbon_backend__display_name
msgid "Display Name"
msgstr "Naziv za prikaz"

#. module: web_environment_ribbon
#: model:ir.model.fields,field_description:web_environment_ribbon.field_web_environment_ribbon_backend__id
msgid "ID"
msgstr "ID"

#. module: web_environment_ribbon
#: model:ir.model.fields,field_description:web_environment_ribbon.field_web_environment_ribbon_backend____last_update
msgid "Last Modified on"
msgstr "Zadnje modificirano"

#. module: web_environment_ribbon
#: model:ir.model,name:web_environment_ribbon.model_web_environment_ribbon_backend
msgid "Web Environment Ribbon Backend"
msgstr ""
37 changes: 37 additions & 0 deletions web_environment_ribbon/i18n/nl.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_environment_ribbon
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2021-05-17 20:47+0000\n"
"Last-Translator: Bosd <[email protected]>\n"
"Language-Team: none\n"
"Language: nl\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.3.2\n"

#. module: web_environment_ribbon
#: model:ir.model.fields,field_description:web_environment_ribbon.field_web_environment_ribbon_backend__display_name
msgid "Display Name"
msgstr "Weergavenaam"

#. module: web_environment_ribbon
#: model:ir.model.fields,field_description:web_environment_ribbon.field_web_environment_ribbon_backend__id
msgid "ID"
msgstr "ID"

#. module: web_environment_ribbon
#: model:ir.model.fields,field_description:web_environment_ribbon.field_web_environment_ribbon_backend____last_update
msgid "Last Modified on"
msgstr "Laatst Gewijzigd op"

#. module: web_environment_ribbon
#: model:ir.model,name:web_environment_ribbon.model_web_environment_ribbon_backend
msgid "Web Environment Ribbon Backend"
msgstr "Web Environment Ribbon Backend"
Loading