[ADD] : Remove Phoning Home.

This commit is contained in:
Kunjal 2017-10-26 13:14:51 +05:30 committed by Siddharth Bhalgami
parent 317220a93d
commit d3f4a54f93
4 changed files with 13 additions and 19 deletions

View File

@ -2,6 +2,14 @@
<flectra>
<data noupdate="1">
<!-- System Parameter for update_notification -->
<record id="config_update_notification" model="ir.config_parameter">
<field name="key">Base statistics</field>
<field name="value">True</field>
</record>
<!-- Thread: 1 incoming email -->
<record id="msg_discus5" model="mail.message">
<field name="subject">Plan to install backup servers</field>

View File

@ -88,6 +88,10 @@ class PublisherWarrantyContract(AbstractModel):
@type cron_mode: boolean
"""
try:
# Code will be execute only if parameter value 'True'
parameter_id = self.env.ref("mail.config_update_notification")
if parameter_id and parameter_id.value != 'True':
return True
try:
result = self._get_sys_logs()
except Exception:

View File

@ -1,18 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">
<t t-name="WebClient.announcement_bar">
<div class="openerp" id="announcement_bar_table">
<table class="oe_webclient">
<tr>
<td colspan="2" class="announcement_bar">
<span class="message"></span>
<span class="url">
<a href="https://services.openerp.com/openerp-enterprise/ab/register" target="_blank"></a>
</span>
<span class="close"></span>
</td>
</tr>
</table>
</div>
</t>
</templates>

View File

@ -74,7 +74,7 @@ class configmanager(object):
self.options = {
'admin_passwd': 'admin',
'csv_internal_sep': ',',
'publisher_warranty_url': 'http://services.openerp.com/publisher-warranty/',
'publisher_warranty_url': 'http://services.flectrahq.com/publisher-warranty/',
'reportgz': False,
'root_path': None,
}