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
pedrobaeza
merged 3 commits into
OCA:11.0
from
hieulucky111:11.0-mig-disable_odoo_online
Mar 23, 2018
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import publisher_warranty_contract |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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': | ||
return super(PublisherWarrantyContract, self).update_notification( | ||
cron_mode=cron_mode) |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PublisherWarrantyContract
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you explain more?
There was a problem hiding this comment.
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!