Browse Source
[FIX] Forward port module_auto_update refactoring from 9.0
pull/1382/head
Laurent Mignon (ACSONE)
7 years ago
committed by
Stéphane Bidoul (ACSONE)
No known key found for this signature in database
GPG Key ID: BCAB2555446B5B92
4 changed files with
7 additions and
7 deletions
-
module_auto_update/migrations/10.0.2.0.0/pre-migrate.py
-
module_auto_update/models/module.py
-
module_auto_update/tests/test_module.py
-
module_auto_update/tests/test_module_deprecated.py
|
|
@ -3,7 +3,7 @@ |
|
|
|
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl). |
|
|
|
import logging |
|
|
|
from psycopg2 import IntegrityError |
|
|
|
from openerp.addons.module_auto_update.models.module_deprecated import \ |
|
|
|
from odoo.addons.module_auto_update.models.module_deprecated import \ |
|
|
|
PARAM_DEPRECATED |
|
|
|
|
|
|
|
_logger = logging.getLogger(__name__) |
|
|
|
|
|
@ -7,8 +7,8 @@ import json |
|
|
|
import logging |
|
|
|
import os |
|
|
|
|
|
|
|
from openerp import api, exceptions, models, tools |
|
|
|
from openerp.modules.module import get_module_path |
|
|
|
from odoo import api, exceptions, models, tools |
|
|
|
from odoo.modules.module import get_module_path |
|
|
|
|
|
|
|
from ..addon_hash import addon_hash |
|
|
|
|
|
|
|
|
|
@ -8,9 +8,9 @@ import tempfile |
|
|
|
|
|
|
|
import mock |
|
|
|
|
|
|
|
from openerp.modules import get_module_path |
|
|
|
from openerp.tests import common |
|
|
|
from openerp.tests.common import TransactionCase |
|
|
|
from odoo.modules import get_module_path |
|
|
|
from odoo.tests import common |
|
|
|
from odoo.tests.common import TransactionCase |
|
|
|
|
|
|
|
from ..addon_hash import addon_hash |
|
|
|
from ..models.module import IncompleteUpgradeError, DEFAULT_EXCLUDE_PATTERNS |
|
|
|
|
|
@ -9,7 +9,7 @@ from odoo.modules import get_module_path |
|
|
|
from odoo.tests.common import TransactionCase |
|
|
|
from odoo.tools import mute_logger |
|
|
|
|
|
|
|
from openerp.addons.module_auto_update.addon_hash import addon_hash |
|
|
|
from odoo.addons.module_auto_update.addon_hash import addon_hash |
|
|
|
|
|
|
|
from ..models.module_deprecated import PARAM_DEPRECATED |
|
|
|
|
|
|
|