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

11.0 mig disable odoo online #1

Merged
merged 3 commits into from Mar 23, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
62 changes: 62 additions & 0 deletions disable_odoo_online/README.rst
@@ -0,0 +1,62 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:target: https://www.gnu.org/licenses/agpl
:alt: License: AGPL-3

========================
Remove odoo.com Bindings
========================

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

* update notifier code is deactivated and the function is overwritten
* apps and updates menu items in settings are hidden inside Technical \\Parameters

Usage
=====

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

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

Bugs are tracked on `GitHub Issues
<https://github.com/OCA/server-brand/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.

Credits
=======

Images
------

* Odoo Community Association: `Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`_.

Contributors
------------

* Holger Brunn <hbrunn@therp.nl>
* Stefan Rijnhart <stefan@opener.am>
* Sylvain LE GAL (https://twitter.com/legalsylvain)
* Hieu, Vo Minh Bao <hieu.vmb@komit-consulting.com>

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

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 https://odoo-community.org.

4 changes: 4 additions & 0 deletions disable_odoo_online/__init__.py
@@ -0,0 +1,4 @@
# Copyright (C) 2013 Therp BV (<http://therp.nl>).
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from . import models
19 changes: 19 additions & 0 deletions disable_odoo_online/__manifest__.py
@@ -0,0 +1,19 @@
# Copyright (C) 2013 Therp BV (<http://therp.nl>).
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Remove odoo.com Bindings",
"version": "11.0.1.0.0",
"author": "Therp BV,GRAP,Odoo Community Association (OCA)",
"license": "AGPL-3",
"category": "base",
"depends": [
'mail',
],
"data": [
'views/ir_ui_menu.xml',
],
"qweb": [
'static/src/xml/base.xml',
],
'installable': True,
}
24 changes: 24 additions & 0 deletions disable_odoo_online/i18n/de.po
@@ -0,0 +1,24 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * disable_odoo_online
#
# Translators:
# Rudolf Schnapka <rs@techno-flex.de>, 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 <rs@techno-flex.de>\n"
"Language-Team: German (http://www.transifex.com/oca/OCA-server-tools-9-0/language/de/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: de\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: disable_odoo_online
#: model:ir.model,name:disable_odoo_online.model_publisher_warranty_contract
msgid "publisher_warranty.contract"
msgstr "publisher_warranty.contract"
24 changes: 24 additions & 0 deletions disable_odoo_online/i18n/es.po
@@ -0,0 +1,24 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * disable_odoo_online
#
# Translators:
# Pedro M. Baeza <pedro.baeza@gmail.com>, 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: 2016-12-21 09:10+0000\n"
"Last-Translator: Pedro M. Baeza <pedro.baeza@gmail.com>\n"
"Language-Team: Spanish (http://www.transifex.com/oca/OCA-server-tools-10-0/language/es/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: es\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: disable_odoo_online
#: model:ir.model,name:disable_odoo_online.model_publisher_warranty_contract
msgid "publisher_warranty.contract"
msgstr "publisher_warranty.contract"
38 changes: 38 additions & 0 deletions disable_odoo_online/i18n/fr.po
@@ -0,0 +1,38 @@
# 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-18 13:55+0000\n"
"Last-Translator: <>\n"
"Language-Team: French (http://www.transifex.com/oca/OCA-server-tools-8-0/language/fr/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: fr\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"

#. module: disable_odoo_online
#: field:publisher_warranty.contract,create_uid:0
msgid "Created by"
msgstr "Créé par"

#. module: disable_odoo_online
#: field:publisher_warranty.contract,create_date:0
msgid "Created on"
msgstr "Date"

#. module: disable_odoo_online
#: field:publisher_warranty.contract,write_uid:0
msgid "Last Updated by"
msgstr "Dernière mise à jour par"

#. module: disable_odoo_online
#: field:publisher_warranty.contract,write_date:0
msgid "Last Updated on"
msgstr "Dernière mise à jour le"
24 changes: 24 additions & 0 deletions disable_odoo_online/i18n/hr.po
@@ -0,0 +1,24 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * disable_odoo_online
#
# Translators:
# Bole <bole@dajmi5.com>, 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: 2016-05-06 13:11+0000\n"
"Last-Translator: Bole <bole@dajmi5.com>\n"
"Language-Team: Croatian (http://www.transifex.com/oca/OCA-server-tools-9-0/language/hr/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: hr\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
msgid "publisher_warranty.contract"
msgstr "publisher_warranty.contract"
24 changes: 24 additions & 0 deletions disable_odoo_online/i18n/hr_HR.po
@@ -0,0 +1,24 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * disable_odoo_online
#
# Translators:
# Bole <bole@dajmi5.com>, 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 <bole@dajmi5.com>\n"
"Language-Team: Croatian (Croatia) (http://www.transifex.com/oca/OCA-server-tools-9-0/language/hr_HR/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: hr_HR\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
msgid "publisher_warranty.contract"
msgstr "publisher_warranty.contract"
24 changes: 24 additions & 0 deletions disable_odoo_online/i18n/it.po
@@ -0,0 +1,24 @@
# 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: 2016-12-17 15:23+0000\n"
"Last-Translator: Paolo Valier\n"
"Language-Team: Italian (http://www.transifex.com/oca/OCA-server-tools-10-0/language/it/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: it\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: disable_odoo_online
#: model:ir.model,name:disable_odoo_online.model_publisher_warranty_contract
msgid "publisher_warranty.contract"
msgstr "publisher_warranty.contract"
24 changes: 24 additions & 0 deletions disable_odoo_online/i18n/nl_NL.po
@@ -0,0 +1,24 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * disable_odoo_online
#
# Translators:
# Peter Hageman <hageman.p@gmail.com>, 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 <hageman.p@gmail.com>\n"
"Language-Team: Dutch (Netherlands) (http://www.transifex.com/oca/OCA-server-tools-10-0/language/nl_NL/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: nl_NL\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: disable_odoo_online
#: model:ir.model,name:disable_odoo_online.model_publisher_warranty_contract
msgid "publisher_warranty.contract"
msgstr "publisher_warranty.contract"
38 changes: 38 additions & 0 deletions disable_odoo_online/i18n/pt_BR.po
@@ -0,0 +1,38 @@
# 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: 2015-09-18 13:55+0000\n"
"Last-Translator: <>\n"
"Language-Team: Portuguese (Brazil) (http://www.transifex.com/oca/OCA-server-tools-8-0/language/pt_BR/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: pt_BR\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"

#. module: disable_openerp_online
#: field:publisher_warranty.contract,create_uid:0
msgid "Created by"
msgstr "Criado por"

#. module: disable_openerp_online
#: field:publisher_warranty.contract,create_date:0
msgid "Created on"
msgstr "Criado em"

#. module: disable_openerp_online
#: field:publisher_warranty.contract,write_uid:0
msgid "Last Updated by"
msgstr "Última atualização por"

#. module: disable_openerp_online
#: field:publisher_warranty.contract,write_date:0
msgid "Last Updated on"
msgstr "Última atualização em"
38 changes: 38 additions & 0 deletions disable_odoo_online/i18n/sl.po
@@ -0,0 +1,38 @@
# 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č <m.mozetic@matmoz.si>\n"
"Language-Team: Slovenian (http://www.transifex.com/oca/OCA-server-tools-8-0/language/sl/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: sl\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
#: field:publisher_warranty.contract,create_uid:0
msgid "Created by"
msgstr "Ustvaril"

#. module: disable_odoo_online
#: field:publisher_warranty.contract,create_date:0
msgid "Created on"
msgstr "Ustvarjeno"

#. module: disable_odoo_online
#: field:publisher_warranty.contract,write_uid:0
msgid "Last Updated by"
msgstr "Zadnjič posodobil"

#. module: disable_odoo_online
#: field:publisher_warranty.contract,write_date:0
msgid "Last Updated on"
msgstr "Zadnjič posodobljeno"
1 change: 1 addition & 0 deletions disable_odoo_online/models/__init__.py
@@ -0,0 +1 @@
from . import publisher_warranty_contract
15 changes: 15 additions & 0 deletions disable_odoo_online/models/publisher_warranty_contract.py
@@ -0,0 +1,15 @@
# Copyright (C) 2013 Therp BV (<http://therp.nl>).
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from odoo import api, models
from odoo.release import version_info


class PublisherWarrantyContract(models.AbstractModel):
_inherit = 'publisher_warranty.contract'

@api.multi
def update_notification(self, cron_mode=True):
if version_info[5] == 'e':
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PublisherWarrantyContract

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you explain more?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I honestly don't remember. Let's just assume I was being dumb!

return super(PublisherWarrantyContract, self).update_notification(
cron_mode=cron_mode)
Binary file added disable_odoo_online/static/description/icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions disable_odoo_online/static/src/xml/base.xml
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<templates>
<t t-extend="UserMenu">
<t t-jquery="a[data-menu='account'], a[data-menu='documentation'], a[data-menu='support']">
this.parent().remove();
</t>
</t>
</templates>
8 changes: 8 additions & 0 deletions disable_odoo_online/views/ir_ui_menu.xml
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>

<record model="ir.ui.menu" id="base.menu_module_updates">
<field name="parent_id" ref="base.menu_ir_property"/>
</record>

</odoo>