diff --git a/testserver.sh b/testserver.sh deleted file mode 100755 index f99b74f..0000000 --- a/testserver.sh +++ /dev/null @@ -1 +0,0 @@ -#touch /tmp/x.txt; \ No newline at end of file diff --git a/testserver_o2b/__init__.py b/testserver_o2b/__init__.py deleted file mode 100644 index 511a0ca..0000000 --- a/testserver_o2b/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# -*- coding: utf-8 -*- - -from . import controllers -from . import models \ No newline at end of file diff --git a/testserver_o2b/__manifest__.py b/testserver_o2b/__manifest__.py deleted file mode 100644 index fa7b9a5..0000000 --- a/testserver_o2b/__manifest__.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- coding: utf-8 -*- -{ - 'name': "testserver_o2b", - - 'summary': """ - Short (1 phrase/line) summary of the module's purpose, used as - subtitle on modules listing or apps.openerp.com""", - - 'description': """ - Long description of module's purpose - """, - - 'author': "Open2bizz", - 'website': "https://open2bizz.tech", - 'category': 'Uncategorized', - 'version': '0.1', - 'depends': ['web_environment_ribbon', 'mail','base',], - 'data': [ - 'views/views.xml', - 'views/templates.xml', - ], - 'demo': [ - 'demo/demo.xml', - ], -} diff --git a/testserver_o2b/controllers/__init__.py b/testserver_o2b/controllers/__init__.py deleted file mode 100644 index 457bae2..0000000 --- a/testserver_o2b/controllers/__init__.py +++ /dev/null @@ -1,3 +0,0 @@ -# -*- coding: utf-8 -*- - -from . import controllers \ No newline at end of file diff --git a/testserver_o2b/controllers/controllers.py b/testserver_o2b/controllers/controllers.py deleted file mode 100644 index bcb2eda..0000000 --- a/testserver_o2b/controllers/controllers.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# from odoo import http - - -# class TestserverO2b(http.Controller): -# @http.route('/testserver_o2b/testserver_o2b/', auth='public') -# def index(self, **kw): -# return "Hello, world" - -# @http.route('/testserver_o2b/testserver_o2b/objects/', auth='public') -# def list(self, **kw): -# return http.request.render('testserver_o2b.listing', { -# 'root': '/testserver_o2b/testserver_o2b', -# 'objects': http.request.env['testserver_o2b.testserver_o2b'].search([]), -# }) - -# @http.route('/testserver_o2b/testserver_o2b/objects//', auth='public') -# def object(self, obj, **kw): -# return http.request.render('testserver_o2b.object', { -# 'object': obj -# }) diff --git a/testserver_o2b/demo/demo.xml b/testserver_o2b/demo/demo.xml deleted file mode 100644 index fbbff02..0000000 --- a/testserver_o2b/demo/demo.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - \ No newline at end of file diff --git a/testserver_o2b/models/__init__.py b/testserver_o2b/models/__init__.py deleted file mode 100644 index dea2ee1..0000000 --- a/testserver_o2b/models/__init__.py +++ /dev/null @@ -1,3 +0,0 @@ -# -*- coding: utf-8 -*- - -from . import init_test \ No newline at end of file diff --git a/testserver_o2b/models/init_test.py b/testserver_o2b/models/init_test.py deleted file mode 100644 index 053286b..0000000 --- a/testserver_o2b/models/init_test.py +++ /dev/null @@ -1,56 +0,0 @@ -# -*- coding: utf-8 -*- -from odoo import tools -from odoo import api, fields, models -from collections.abc import Mapping -import logging -_logger = logging.getLogger(__name__) -import os -import uuid -import odoo - -class IrLogging(models.Model): - _inherit = 'ir.logging' - - def init(self): - db_id = uuid.uuid1() - _logger.error(db_id) - self.env.cr.execute(""" - UPDATE ir_mail_server set active = 'f'; - UPDATE fetchmail_server set active = 'f'; - UPDATE ir_cron set active = 'f'; - DELETE FROM mail_mail; - UPDATE ir_config_parameter set value = 'M160129258730' where key = 'database.enterprise_code'; - UPDATE ir_config_parameter set value = (NOW() + INTERVAL '30 DAY') where key = 'database.expiration_date'; - UPDATE ir_config_parameter set value = '%s' where key = 'database.uuid'; - INSERT INTO ir_config_parameter(key,value) VALUES ('report.url','http://127.0.0.1:8069'); - INSERT INTO ir_mail_server(smtp_host,smtp_port,name,smtp_authentication,smtp_encryption,active) VALUES ('localhost','1025','Mailcatcher: http://localhost:8025/','login','name','t'); - """ %(db_id)) - model = self.env['ir.model'].search([('model','=','delivery.carrier')]) - if model: - field = self.env['ir.model.fields'].search([('name','=','prod_environment'),('model_id','=',model.id)]) - if field: - self.env.cr.execute("""UPDATE delivery_carrier SET prod_environment = False WHERE id>0;""") - model = self.env['ir.model'].search([('model','=','payment.provider')]) - if model: - field = self.env['ir.model.fields'].search([('name','=','state'),('model_id','=',model.id)]) - if field: - self.env.cr.execute("""UPDATE payment_provider SET state = 'disabled' WHERE id>0;""") - if self.env['ir.model'].search([('model','=','account.journal')]): - self.env.cr.execute("""UPDATE account_journal set bank_statements_source = 'undefined';""") - ip_ok = False - with os.popen("ip a") as f: - for x in f.readlines(): - if float(x.find('192.168.78.')) > -1: - ip_ok = True - if not ip_ok: - self.env.cr.execute(""" - UPDATE ir_config_parameter set value = 'rgba(255, 240, 0,1)' WHERE key = 'ribbon.background.color'; - UPDATE ir_config_parameter set value = '#000000' WHERE key = 'ribbon.color'; - UPDATE ir_config_parameter set value = '!!! IP WRONG !!!' WHERE key = 'ribbon.name'; - """) - ADDONS_PATH = odoo.tools.config['addons_path'] - _logger.error(ADDONS_PATH) - for ap in ADDONS_PATH.split(','): - if ap[-10:] == 'testserver': - _logger.error(os.system('./%s/testserver.sh' %(ap))) - \ No newline at end of file diff --git a/testserver_o2b/views/templates.xml b/testserver_o2b/views/templates.xml deleted file mode 100644 index cea6b39..0000000 --- a/testserver_o2b/views/templates.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - \ No newline at end of file diff --git a/testserver_o2b/views/views.xml b/testserver_o2b/views/views.xml deleted file mode 100644 index fef3628..0000000 --- a/testserver_o2b/views/views.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/web_environment_ribbon/README.rst b/web_environment_ribbon/README.rst deleted file mode 100644 index 5204e7b..0000000 --- a/web_environment_ribbon/README.rst +++ /dev/null @@ -1,98 +0,0 @@ -====================== -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/15.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-15-0/web-15-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/15.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 `_. -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 -~~~~~~~ - -* Francesco OpenCode Apruzzese -* Tecnativa - -Contributors -~~~~~~~~~~~~ - -* Francesco Apruzzese -* Javi Melendez -* Antonio Espinosa -* Thomas Binsfeld -* Xavier Jiménez -* Dennis Sluijk -* Eric Lembregts - -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_environment_ribbon/__init__.py b/web_environment_ribbon/__init__.py deleted file mode 100644 index 0650744..0000000 --- a/web_environment_ribbon/__init__.py +++ /dev/null @@ -1 +0,0 @@ -from . import models diff --git a/web_environment_ribbon/__manifest__.py b/web_environment_ribbon/__manifest__.py deleted file mode 100644 index f2e08da..0000000 --- a/web_environment_ribbon/__manifest__.py +++ /dev/null @@ -1,27 +0,0 @@ -# Copyright 2015 Francesco OpenCode Apruzzese -# Copyright 2016 Antonio Espinosa -# Copyright 2017 Thomas Binsfeld -# Copyright 2017 Xavier Jiménez -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). - -{ - "name": "Web Environment Ribbon", - "version": "15.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/**/*", - ], - }, -} diff --git a/web_environment_ribbon/data/ribbon_data.xml b/web_environment_ribbon/data/ribbon_data.xml deleted file mode 100644 index 72a5024..0000000 --- a/web_environment_ribbon/data/ribbon_data.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - ribbon.name - ({db_name})]]> - - - - ribbon.color - #f0f0f0 - - - - ribbon.background.color - rgba(255,0,0,.6) - - diff --git a/web_environment_ribbon/i18n/ca.po b/web_environment_ribbon/i18n/ca.po deleted file mode 100644 index 6011c8b..0000000 --- a/web_environment_ribbon/i18n/ca.po +++ /dev/null @@ -1,37 +0,0 @@ -# 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 \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\"" diff --git a/web_environment_ribbon/i18n/de.po b/web_environment_ribbon/i18n/de.po deleted file mode 100644 index 69c8fd2..0000000 --- a/web_environment_ribbon/i18n/de.po +++ /dev/null @@ -1,40 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * web_environment_ribbon -# -# Translators: -# Niki Waibel , 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 \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" diff --git a/web_environment_ribbon/i18n/es.po b/web_environment_ribbon/i18n/es.po deleted file mode 100644 index f38990c..0000000 --- a/web_environment_ribbon/i18n/es.po +++ /dev/null @@ -1,37 +0,0 @@ -# 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 \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\"" diff --git a/web_environment_ribbon/i18n/fr.po b/web_environment_ribbon/i18n/fr.po deleted file mode 100644 index 5125212..0000000 --- a/web_environment_ribbon/i18n/fr.po +++ /dev/null @@ -1,40 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * web_environment_ribbon -# -# Translators: -# OCA Transbot , 2017 -# Quentin THEURET , 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 , 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" diff --git a/web_environment_ribbon/i18n/hr.po b/web_environment_ribbon/i18n/hr.po deleted file mode 100644 index 836e231..0000000 --- a/web_environment_ribbon/i18n/hr.po +++ /dev/null @@ -1,40 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * web_environment_ribbon -# -# Translators: -# Bole , 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 , 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 "" diff --git a/web_environment_ribbon/i18n/nl.po b/web_environment_ribbon/i18n/nl.po deleted file mode 100644 index 4185a0a..0000000 --- a/web_environment_ribbon/i18n/nl.po +++ /dev/null @@ -1,37 +0,0 @@ -# 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 \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" diff --git a/web_environment_ribbon/i18n/nl_NL.po b/web_environment_ribbon/i18n/nl_NL.po deleted file mode 100644 index d66b5b3..0000000 --- a/web_environment_ribbon/i18n/nl_NL.po +++ /dev/null @@ -1,41 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * web_environment_ribbon -# -# Translators: -# Peter Hageman , 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: 2021-04-22 15:47+0000\n" -"Last-Translator: Bosd \n" -"Language-Team: Dutch (Netherlands) (https://www.transifex.com/oca/teams/" -"23907/nl_NL/)\n" -"Language: nl_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 bijgewerkt op" - -#. module: web_environment_ribbon -#: model:ir.model,name:web_environment_ribbon.model_web_environment_ribbon_backend -msgid "Web Environment Ribbon Backend" -msgstr "" diff --git a/web_environment_ribbon/i18n/pt.po b/web_environment_ribbon/i18n/pt.po deleted file mode 100644 index 486684b..0000000 --- a/web_environment_ribbon/i18n/pt.po +++ /dev/null @@ -1,37 +0,0 @@ -# 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-12 11:44+0000\n" -"Last-Translator: Pedro Castro Silva \n" -"Language-Team: none\n" -"Language: pt\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 "Nome a Exibir" - -#. 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 Modificação em" - -#. module: web_environment_ribbon -#: model:ir.model,name:web_environment_ribbon.model_web_environment_ribbon_backend -msgid "Web Environment Ribbon Backend" -msgstr "" diff --git a/web_environment_ribbon/i18n/pt_BR.po b/web_environment_ribbon/i18n/pt_BR.po deleted file mode 100644 index 539afa6..0000000 --- a/web_environment_ribbon/i18n/pt_BR.po +++ /dev/null @@ -1,41 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * web_environment_ribbon -# -# Translators: -# Rodrigo de Almeida Sottomaior Macedo , 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: 2018-08-03 12:34+0000\n" -"Last-Translator: Rodrigo Macedo \n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/" -"teams/23907/pt_BR/)\n" -"Language: pt_BR\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.1.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 "Exibir Nome" - -#. module: web_environment_ribbon -#: model:ir.model.fields,field_description:web_environment_ribbon.field_web_environment_ribbon_backend__id -msgid "ID" -msgstr "Identificação" - -#. 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 Modificação em" - -#. module: web_environment_ribbon -#: model:ir.model,name:web_environment_ribbon.model_web_environment_ribbon_backend -msgid "Web Environment Ribbon Backend" -msgstr "Back-end da fita do ambiente da Web" diff --git a/web_environment_ribbon/i18n/sl.po b/web_environment_ribbon/i18n/sl.po deleted file mode 100644 index 3790712..0000000 --- a/web_environment_ribbon/i18n/sl.po +++ /dev/null @@ -1,40 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * web_environment_ribbon -# -# Translators: -# OCA Transbot , 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: OCA Transbot , 2017\n" -"Language-Team: Slovenian (https://www.transifex.com/oca/teams/23907/sl/)\n" -"Language: sl\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n" -"%100==4 ? 2 : 3);\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 "" - -#. 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 "" - -#. module: web_environment_ribbon -#: model:ir.model,name:web_environment_ribbon.model_web_environment_ribbon_backend -msgid "Web Environment Ribbon Backend" -msgstr "" diff --git a/web_environment_ribbon/i18n/web_environment_ribbon.pot b/web_environment_ribbon/i18n/web_environment_ribbon.pot deleted file mode 100644 index 86fd682..0000000 --- a/web_environment_ribbon/i18n/web_environment_ribbon.pot +++ /dev/null @@ -1,19 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * web_environment_ribbon -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 15.0\n" -"Report-Msgid-Bugs-To: \n" -"Last-Translator: \n" -"Language-Team: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Plural-Forms: \n" - -#. module: web_environment_ribbon -#: model:ir.model,name:web_environment_ribbon.model_web_environment_ribbon_backend -msgid "Web Environment Ribbon Backend" -msgstr "" diff --git a/web_environment_ribbon/i18n/zh_CN.po b/web_environment_ribbon/i18n/zh_CN.po deleted file mode 100644 index 6b60720..0000000 --- a/web_environment_ribbon/i18n/zh_CN.po +++ /dev/null @@ -1,37 +0,0 @@ -# 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-09-01 12:52+0000\n" -"Last-Translator: 黎伟杰 <674416404@qq.com>\n" -"Language-Team: none\n" -"Language: zh_CN\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: Weblate 3.8\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 "显示名称" - -#. 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 "最后修改时间" - -#. module: web_environment_ribbon -#: model:ir.model,name:web_environment_ribbon.model_web_environment_ribbon_backend -msgid "Web Environment Ribbon Backend" -msgstr "Web环境功能区后台" diff --git a/web_environment_ribbon/models/__init__.py b/web_environment_ribbon/models/__init__.py deleted file mode 100644 index 18368b4..0000000 --- a/web_environment_ribbon/models/__init__.py +++ /dev/null @@ -1 +0,0 @@ -from . import web_environment_ribbon_backend diff --git a/web_environment_ribbon/models/web_environment_ribbon_backend.py b/web_environment_ribbon/models/web_environment_ribbon_backend.py deleted file mode 100644 index 5932d7b..0000000 --- a/web_environment_ribbon/models/web_environment_ribbon_backend.py +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright 2017 ACSONE SA/NV -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). - -from odoo import api, models - - -class WebEnvironmentRibbonBackend(models.AbstractModel): - - _name = "web.environment.ribbon.backend" - _description = "Web Environment Ribbon Backend" - - @api.model - def _prepare_ribbon_format_vals(self): - return {"db_name": self.env.cr.dbname} - - @api.model - def _prepare_ribbon_name(self): - name_tmpl = self.env["ir.config_parameter"].sudo().get_param("ribbon.name") - vals = self._prepare_ribbon_format_vals() - return name_tmpl and name_tmpl.format(**vals) or name_tmpl - - @api.model - def get_environment_ribbon(self): - """ - This method returns the ribbon data from ir config parameters - :return: dictionary - """ - ir_config_model = self.env["ir.config_parameter"] - name = self._prepare_ribbon_name() - return { - "name": name, - "color": ir_config_model.sudo().get_param("ribbon.color"), - "background_color": ir_config_model.sudo().get_param( - "ribbon.background.color" - ), - } diff --git a/web_environment_ribbon/readme/CONFIGURE.rst b/web_environment_ribbon/readme/CONFIGURE.rst deleted file mode 100644 index 8542c72..0000000 --- a/web_environment_ribbon/readme/CONFIGURE.rst +++ /dev/null @@ -1,8 +0,0 @@ -* 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". diff --git a/web_environment_ribbon/readme/CONTRIBUTORS.rst b/web_environment_ribbon/readme/CONTRIBUTORS.rst deleted file mode 100644 index 257e450..0000000 --- a/web_environment_ribbon/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1,7 +0,0 @@ -* Francesco Apruzzese -* Javi Melendez -* Antonio Espinosa -* Thomas Binsfeld -* Xavier Jiménez -* Dennis Sluijk -* Eric Lembregts diff --git a/web_environment_ribbon/readme/DESCRIPTION.rst b/web_environment_ribbon/readme/DESCRIPTION.rst deleted file mode 100644 index c52ab9b..0000000 --- a/web_environment_ribbon/readme/DESCRIPTION.rst +++ /dev/null @@ -1 +0,0 @@ -Mark a Test Environment with a red ribbon on the top left corner in every page diff --git a/web_environment_ribbon/readme/USAGE.rst b/web_environment_ribbon/readme/USAGE.rst deleted file mode 100644 index 408d88c..0000000 --- a/web_environment_ribbon/readme/USAGE.rst +++ /dev/null @@ -1,2 +0,0 @@ -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 diff --git a/web_environment_ribbon/static/description/icon.png b/web_environment_ribbon/static/description/icon.png deleted file mode 100644 index 78b52ae..0000000 Binary files a/web_environment_ribbon/static/description/icon.png and /dev/null differ diff --git a/web_environment_ribbon/static/description/index.html b/web_environment_ribbon/static/description/index.html deleted file mode 100644 index 9d185f1..0000000 --- a/web_environment_ribbon/static/description/index.html +++ /dev/null @@ -1,446 +0,0 @@ - - - - - - -Web Environment Ribbon - - - -
-

Web Environment Ribbon

- - -

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

-

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

-

Table of contents

- -
-

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. -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

-
    -
  • Francesco OpenCode Apruzzese
  • -
  • Tecnativa
  • -
-
-
-

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_environment_ribbon/static/description/screenshot.png b/web_environment_ribbon/static/description/screenshot.png deleted file mode 100644 index 3024565..0000000 Binary files a/web_environment_ribbon/static/description/screenshot.png and /dev/null differ diff --git a/web_environment_ribbon/static/src/css/ribbon.css b/web_environment_ribbon/static/src/css/ribbon.css deleted file mode 100644 index cbf4a40..0000000 --- a/web_environment_ribbon/static/src/css/ribbon.css +++ /dev/null @@ -1,36 +0,0 @@ -/* Copyright 2015 Francesco OpenCode Apruzzese - Copyright 2017 Thomas Binsfeld - Copyright 2021 Andreas Perhab - * License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). */ - -.test-ribbon { - width: 300px; - top: 25px; - left: -100px; - text-align: center; - padding: 10px; - line-height: 20px; - letter-spacing: 1px; - color: #f0f0f0; - -webkit-transform: rotate(-45deg); - -ms-transform: rotate(-45deg); - -moz-transform: rotate(-45deg); - -o-transform: rotate(-45deg); - transform: rotate(-45deg); - z-index: 9999; - position: fixed; - box-shadow: 0 0 3px rgba(0, 0, 0, 0.3); - background: rgba(255, 0, 0, 0.6); - pointer-events: none; -} - -.test-ribbon b { - font-size: 20px; -} - -header:hover ~ .test-ribbon, -nav:hover ~ .test-ribbon { - /* Ease out ribbon when user is using the navigation in Odoo */ - opacity: 0; - transition: 0.2s ease; -} diff --git a/web_environment_ribbon/static/src/js/ribbon.js b/web_environment_ribbon/static/src/js/ribbon.js deleted file mode 100644 index 67a4571..0000000 --- a/web_environment_ribbon/static/src/js/ribbon.js +++ /dev/null @@ -1,62 +0,0 @@ -/* Copyright 2015 Sylvain Calador - Copyright 2015 Javi Melendez - Copyright 2016 Antonio Espinosa - Copyright 2017 Thomas Binsfeld - Copyright 2017 Xavier Jiménez - License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). */ - -odoo.define("web_environment_ribbon.ribbon", function (require) { - "use strict"; - var rpc = require("web.rpc"); - var core = require("web.core"); - - // Code from: http://jsfiddle.net/WK_of_Angmar/xgA5C/ - function validStrColour(strToTest) { - if (strToTest === "") { - return false; - } - if (strToTest === "inherit") { - return true; - } - if (strToTest === "transparent") { - return true; - } - var image = document.createElement("img"); - image.style.color = "rgb(0, 0, 0)"; - image.style.color = strToTest; - if (image.style.color !== "rgb(0, 0, 0)") { - return true; - } - image.style.color = "rgb(255, 255, 255)"; - image.style.color = strToTest; - return image.style.color !== "rgb(255, 255, 255)"; - } - - core.bus.on("web_client_ready", null, function () { - var ribbon = $('