diff --git a/disable_odoo_online/README.rst b/disable_odoo_online/README.rst new file mode 100644 index 00000000..740da0ec --- /dev/null +++ b/disable_odoo_online/README.rst @@ -0,0 +1,97 @@ +======================== +Remove odoo.com Bindings +======================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:778b7d9984ee7dfa7e3b47cdd9ecf6ed00eb8eaf0e76b6bbf51877485b02484b + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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%2Fserver--brand-lightgray.png?logo=github + :target: https://github.com/OCA/server-brand/tree/17.0/disable_odoo_online + :alt: OCA/server-brand +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/server-brand-17-0/server-brand-17-0-disable_odoo_online + :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/server-brand&target_branch=17.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module deactivates all bindings to odoo.com that come with the +standard code: + +- update notifier code is deactivated and the function is overwritten. + It's deactivated only in community version, because `it's not + legal `__ + to deactivate notifier code in odoo enterprise +- apps and updates menu items in settings are hidden inside Technical + Parameters +- documentation, support and odoo.com account are removed from user + menu + +**Table of contents** + +.. contents:: + :local: + +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 +------- + +* Therp BV +* GRAP + +Contributors +------------ + +- Holger Brunn +- Stefan Rijnhart +- Sylvain LE GAL + (`https://twitter.com/legalsylvain `__) +- Hieu, Vo Minh Bao +- Lorenzo Battistini + <`https://github.com/eLBati `__> +- Dennis Sluijk +- Dhara Solanki + (`http://www.initos.com `__) +- Vincent Hatakeyama + +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/server-brand `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/disable_odoo_online/__init__.py b/disable_odoo_online/__init__.py new file mode 100644 index 00000000..ab40b843 --- /dev/null +++ b/disable_odoo_online/__init__.py @@ -0,0 +1,4 @@ +# Copyright (C) 2013 Therp BV (). +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from . import models diff --git a/disable_odoo_online/__manifest__.py b/disable_odoo_online/__manifest__.py new file mode 100644 index 00000000..82988b5d --- /dev/null +++ b/disable_odoo_online/__manifest__.py @@ -0,0 +1,19 @@ +# Copyright (C) 2013 Therp BV (). +# Copyright (C) 2022 XCG Consulting (). +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +{ + "name": "Remove odoo.com Bindings", + "version": "17.0.1.0.0", + "author": "Therp BV,GRAP,Odoo Community Association (OCA)", + "website": "https://github.com/OCA/server-brand", + "license": "AGPL-3", + "category": "Hidden", + "depends": ["mail"], + "data": ["views/ir_ui_menu.xml"], + "assets": { + "web.assets_backend": [ + "disable_odoo_online/static/src/js/user_menu_items.esm.js" + ], + }, + "installable": True, +} diff --git a/disable_odoo_online/i18n/de.po b/disable_odoo_online/i18n/de.po new file mode 100644 index 00000000..f150dd9c --- /dev/null +++ b/disable_odoo_online/i18n/de.po @@ -0,0 +1,26 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * disable_odoo_online +# +# Translators: +# Rudolf Schnapka , 2016 +msgid "" +msgstr "" +"Project-Id-Version: server-tools (9.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-04-17 12:15+0000\n" +"PO-Revision-Date: 2016-04-21 09:16+0000\n" +"Last-Translator: Rudolf Schnapka \n" +"Language-Team: German (http://www.transifex.com/oca/OCA-server-tools-9-0/" +"language/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" + +#. module: disable_odoo_online +#: model:ir.model,name:disable_odoo_online.model_publisher_warranty_contract +#, fuzzy +msgid "Publisher Warranty Contract" +msgstr "publisher_warranty.contract" diff --git a/disable_odoo_online/i18n/disable_odoo_online.pot b/disable_odoo_online/i18n/disable_odoo_online.pot new file mode 100644 index 00000000..3ca42557 --- /dev/null +++ b/disable_odoo_online/i18n/disable_odoo_online.pot @@ -0,0 +1,19 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * disable_odoo_online +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 17.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: disable_odoo_online +#: model:ir.model,name:disable_odoo_online.model_publisher_warranty_contract +msgid "Publisher Warranty Contract" +msgstr "" diff --git a/disable_odoo_online/i18n/es.po b/disable_odoo_online/i18n/es.po new file mode 100644 index 00000000..3e536ad0 --- /dev/null +++ b/disable_odoo_online/i18n/es.po @@ -0,0 +1,26 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * disable_odoo_online +# +# Translators: +# Pedro M. Baeza , 2016 +msgid "" +msgstr "" +"Project-Id-Version: server-tools (10.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-23 02:01+0000\n" +"PO-Revision-Date: 2019-03-01 15:53+0000\n" +"Last-Translator: Marta Vázquez Rodríguez \n" +"Language-Team: Spanish (http://www.transifex.com/oca/OCA-server-tools-10-0/" +"language/es/)\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.4\n" + +#. module: disable_odoo_online +#: model:ir.model,name:disable_odoo_online.model_publisher_warranty_contract +msgid "Publisher Warranty Contract" +msgstr "'publisher_warranty.contract'" diff --git a/disable_odoo_online/i18n/fr.po b/disable_odoo_online/i18n/fr.po new file mode 100644 index 00000000..e0cf8556 --- /dev/null +++ b/disable_odoo_online/i18n/fr.po @@ -0,0 +1,37 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * disable_odoo_online +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: server-tools (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-09-29 11:14+0000\n" +"PO-Revision-Date: 2018-12-12 19:58+0000\n" +"Last-Translator: Alexandre Fayolle \n" +"Language-Team: French (http://www.transifex.com/oca/OCA-server-tools-8-0/" +"language/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" +"X-Generator: Weblate 3.3\n" + +#. module: disable_odoo_online +#: model:ir.model,name:disable_odoo_online.model_publisher_warranty_contract +msgid "Publisher Warranty Contract" +msgstr "Contrat de garantie fournisseur" + +#~ msgid "Created by" +#~ msgstr "Créé par" + +#~ msgid "Created on" +#~ msgstr "Date" + +#~ msgid "Last Updated by" +#~ msgstr "Dernière mise à jour par" + +#~ msgid "Last Updated on" +#~ msgstr "Dernière mise à jour le" diff --git a/disable_odoo_online/i18n/hr.po b/disable_odoo_online/i18n/hr.po new file mode 100644 index 00000000..78128422 --- /dev/null +++ b/disable_odoo_online/i18n/hr.po @@ -0,0 +1,27 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * disable_odoo_online +# +# Translators: +# Bole , 2016 +msgid "" +msgstr "" +"Project-Id-Version: server-tools (9.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-05-01 13:12+0000\n" +"PO-Revision-Date: 2019-11-18 14:35+0000\n" +"Last-Translator: Bole \n" +"Language-Team: Croatian (http://www.transifex.com/oca/OCA-server-tools-9-0/" +"language/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" +"X-Generator: Weblate 3.8\n" + +#. module: disable_odoo_online +#: model:ir.model,name:disable_odoo_online.model_publisher_warranty_contract +msgid "Publisher Warranty Contract" +msgstr "Ugovor o održavanju Izdavača" diff --git a/disable_odoo_online/i18n/hr_HR.po b/disable_odoo_online/i18n/hr_HR.po new file mode 100644 index 00000000..53fd5743 --- /dev/null +++ b/disable_odoo_online/i18n/hr_HR.po @@ -0,0 +1,27 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * disable_odoo_online +# +# Translators: +# Bole , 2016 +msgid "" +msgstr "" +"Project-Id-Version: server-tools (9.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-06-09 12:31+0000\n" +"PO-Revision-Date: 2016-05-31 20:16+0000\n" +"Last-Translator: Bole \n" +"Language-Team: Croatian (Croatia) (http://www.transifex.com/oca/OCA-server-" +"tools-9-0/language/hr_HR/)\n" +"Language: hr_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: disable_odoo_online +#: model:ir.model,name:disable_odoo_online.model_publisher_warranty_contract +#, fuzzy +msgid "Publisher Warranty Contract" +msgstr "publisher_warranty.contract" diff --git a/disable_odoo_online/i18n/it.po b/disable_odoo_online/i18n/it.po new file mode 100644 index 00000000..4108f97a --- /dev/null +++ b/disable_odoo_online/i18n/it.po @@ -0,0 +1,26 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * disable_odoo_online +# +# Translators: +# Paolo Valier, 2016 +msgid "" +msgstr "" +"Project-Id-Version: server-tools (10.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-23 02:01+0000\n" +"PO-Revision-Date: 2022-12-20 15:44+0000\n" +"Last-Translator: mymage \n" +"Language-Team: Italian (http://www.transifex.com/oca/OCA-server-tools-10-0/" +"language/it/)\n" +"Language: it\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.14.1\n" + +#. module: disable_odoo_online +#: model:ir.model,name:disable_odoo_online.model_publisher_warranty_contract +msgid "Publisher Warranty Contract" +msgstr "Contratto garanzia editore" diff --git a/disable_odoo_online/i18n/nl_NL.po b/disable_odoo_online/i18n/nl_NL.po new file mode 100644 index 00000000..fc998fb4 --- /dev/null +++ b/disable_odoo_online/i18n/nl_NL.po @@ -0,0 +1,26 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * disable_odoo_online +# +# Translators: +# Peter Hageman , 2017 +msgid "" +msgstr "" +"Project-Id-Version: server-tools (10.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-06-30 12:21+0000\n" +"PO-Revision-Date: 2017-06-29 07:30+0000\n" +"Last-Translator: Peter Hageman \n" +"Language-Team: Dutch (Netherlands) (http://www.transifex.com/oca/OCA-server-" +"tools-10-0/language/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" + +#. module: disable_odoo_online +#: model:ir.model,name:disable_odoo_online.model_publisher_warranty_contract +#, fuzzy +msgid "Publisher Warranty Contract" +msgstr "publisher_warranty.contract" diff --git a/disable_odoo_online/i18n/pt_BR.po b/disable_odoo_online/i18n/pt_BR.po new file mode 100644 index 00000000..5f6d4d35 --- /dev/null +++ b/disable_odoo_online/i18n/pt_BR.po @@ -0,0 +1,37 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * disable_openerp_online +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: server-tools (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-09-29 11:14+0000\n" +"PO-Revision-Date: 2019-08-30 18:23+0000\n" +"Last-Translator: Rodrigo Macedo \n" +"Language-Team: Portuguese (Brazil) (http://www.transifex.com/oca/OCA-server-" +"tools-8-0/language/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.8\n" + +#. module: disable_odoo_online +#: model:ir.model,name:disable_odoo_online.model_publisher_warranty_contract +msgid "Publisher Warranty Contract" +msgstr "Contrato de Garantia Publicado" + +#~ msgid "Created by" +#~ msgstr "Criado por" + +#~ msgid "Created on" +#~ msgstr "Criado em" + +#~ msgid "Last Updated by" +#~ msgstr "Última atualização por" + +#~ msgid "Last Updated on" +#~ msgstr "Última atualização em" diff --git a/disable_odoo_online/i18n/sl.po b/disable_odoo_online/i18n/sl.po new file mode 100644 index 00000000..6b673bdc --- /dev/null +++ b/disable_odoo_online/i18n/sl.po @@ -0,0 +1,37 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * disable_odoo_online +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: server-tools (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-09-29 11:14+0000\n" +"PO-Revision-Date: 2015-09-24 11:47+0000\n" +"Last-Translator: Matjaž Mozetič \n" +"Language-Team: Slovenian (http://www.transifex.com/oca/OCA-server-tools-8-0/" +"language/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: disable_odoo_online +#: model:ir.model,name:disable_odoo_online.model_publisher_warranty_contract +msgid "Publisher Warranty Contract" +msgstr "" + +#~ msgid "Created by" +#~ msgstr "Ustvaril" + +#~ msgid "Created on" +#~ msgstr "Ustvarjeno" + +#~ msgid "Last Updated by" +#~ msgstr "Zadnjič posodobil" + +#~ msgid "Last Updated on" +#~ msgstr "Zadnjič posodobljeno" diff --git a/disable_odoo_online/models/__init__.py b/disable_odoo_online/models/__init__.py new file mode 100644 index 00000000..beb978ea --- /dev/null +++ b/disable_odoo_online/models/__init__.py @@ -0,0 +1 @@ +from . import publisher_warranty_contract diff --git a/disable_odoo_online/models/publisher_warranty_contract.py b/disable_odoo_online/models/publisher_warranty_contract.py new file mode 100644 index 00000000..4d833efc --- /dev/null +++ b/disable_odoo_online/models/publisher_warranty_contract.py @@ -0,0 +1,15 @@ +# Copyright (C) 2013 Therp BV (). +# Copyright (C) 2022 XCG Consulting (). +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from odoo import models +from odoo.release import version_info + + +class PublisherWarrantyContract(models.AbstractModel): + _inherit = "publisher_warranty.contract" + + def update_notification(self, cron_mode=True): + if version_info[5] == "e": + return super().update_notification(cron_mode=cron_mode) + return True diff --git a/disable_odoo_online/pyproject.toml b/disable_odoo_online/pyproject.toml new file mode 100644 index 00000000..4231d0cc --- /dev/null +++ b/disable_odoo_online/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/disable_odoo_online/readme/CONTRIBUTORS.md b/disable_odoo_online/readme/CONTRIBUTORS.md new file mode 100644 index 00000000..dae0ec77 --- /dev/null +++ b/disable_odoo_online/readme/CONTRIBUTORS.md @@ -0,0 +1,8 @@ +- Holger Brunn \<\> +- Stefan Rijnhart \<\> +- Sylvain LE GAL () +- Hieu, Vo Minh Bao \<\> +- Lorenzo Battistini \<\> +- Dennis Sluijk \<\> +- Dhara Solanki \<\> () +- Vincent Hatakeyama \<\> diff --git a/disable_odoo_online/readme/DESCRIPTION.md b/disable_odoo_online/readme/DESCRIPTION.md new file mode 100644 index 00000000..8e05c9e1 --- /dev/null +++ b/disable_odoo_online/readme/DESCRIPTION.md @@ -0,0 +1,10 @@ +This module deactivates all bindings to odoo.com that come with the +standard code: + +- update notifier code is deactivated and the function is overwritten. + It's deactivated only in community version, because [it's not + legal](https://www.odoo.com/documentation/user/12.0/legal/terms/enterprise.html#customer-obligations) + to deactivate notifier code in odoo enterprise +- apps and updates menu items in settings are hidden inside Technical + Parameters +- documentation, support and odoo.com account are removed from user menu diff --git a/disable_odoo_online/static/description/icon.png b/disable_odoo_online/static/description/icon.png new file mode 100644 index 00000000..7252e01e Binary files /dev/null and b/disable_odoo_online/static/description/icon.png differ diff --git a/disable_odoo_online/static/description/index.html b/disable_odoo_online/static/description/index.html new file mode 100644 index 00000000..31f23a2c --- /dev/null +++ b/disable_odoo_online/static/description/index.html @@ -0,0 +1,442 @@ + + + + + +Remove odoo.com Bindings + + + +
+

Remove odoo.com Bindings

+ + +

Beta License: AGPL-3 OCA/server-brand Translate me on Weblate Try me on Runboat

+

This module deactivates all bindings to odoo.com that come with the +standard code:

+
    +
  • update notifier code is deactivated and the function is overwritten. +It’s deactivated only in community version, because it’s not +legal +to deactivate notifier code in odoo enterprise
  • +
  • apps and updates menu items in settings are hidden inside Technical +Parameters
  • +
  • documentation, support and odoo.com account are removed from user +menu
  • +
+

Table of contents

+ +
+

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

+
    +
  • Therp BV
  • +
  • GRAP
  • +
+
+
+

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/server-brand project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/disable_odoo_online/static/src/js/user_menu_items.esm.js b/disable_odoo_online/static/src/js/user_menu_items.esm.js new file mode 100644 index 00000000..67bb19c0 --- /dev/null +++ b/disable_odoo_online/static/src/js/user_menu_items.esm.js @@ -0,0 +1,9 @@ +/** @odoo-module **/ + +import {registry} from "@web/core/registry"; +// Needed so that this is run after adding the menu entries +import {user_menu_items} from "@web/webclient/user_menu/user_menu_items"; // eslint-disable-line no-unused-vars + +registry.category("user_menuitems").remove("documentation"); +registry.category("user_menuitems").remove("support"); +registry.category("user_menuitems").remove("odoo_account"); diff --git a/disable_odoo_online/views/ir_ui_menu.xml b/disable_odoo_online/views/ir_ui_menu.xml new file mode 100644 index 00000000..62a6155d --- /dev/null +++ b/disable_odoo_online/views/ir_ui_menu.xml @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + +