Created
June 21, 2018 14:50
-
-
Save josemoralesp/bf2e2cbf548ac0647f40c87c35861780 to your computer and use it in GitHub Desktop.
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
# -*- coding: utf-8 -*- | |
import logging | |
from odoo import SUPERUSER_ID, api | |
_logger = logging.getLogger(__name__) | |
def remove_website(cr): | |
with api.Environment.manage(): | |
env = api.Environment(cr, SUPERUSER_ID, {}) | |
module = env.ref('base.module_website') | |
module.button_uninstall() | |
def migrate(cr, version): | |
if not version: | |
return | |
remove_website(cr) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment