Migrate addons to 10.0

This commit is contained in:
Guewen Baconnier committed 2016-12-21 21:29:09 +01:00
1 parent 022f9003e8
commit 8e4b461c75
17 files changed
+35 -37

No files matched your search

+6 -7
View File
@@ -10,8 +10,8 @@ from collections import namedtuple
from distutils.util import strtobool
from openerp import api, models, SUPERUSER_ID
from openerp.tools.config import config
from odoo import api, models
from odoo.tools.config import config
_logger = logging.getLogger(__name__)
@@ -124,8 +124,7 @@ class CloudPlatform(models.AbstractModel):
self._check_redis(environment_name)
self._check_metrics(environment_name)
@api.cr
def _register_hook(self, cr):
super(CloudPlatform, self)._register_hook(cr)
env = api.Environment(cr, SUPERUSER_ID, {})
env['cloud.platform'].check()
@api.model_cr
def _register_hook(self):
super(CloudPlatform, self)._register_hook()
self.sudo().check()
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.