Browse Source

[FIX] Forward port module_auto_update refactoring from 9.0

pull/1217/head
Laurent Mignon (ACSONE) 7 years ago
committed by Benjamin Willig
parent
commit
61ab94e2b9
  1. 2
      module_auto_update/migrations/10.0.2.0.0/pre-migrate.py
  2. 4
      module_auto_update/models/module.py
  3. 6
      module_auto_update/tests/test_module.py
  4. 2
      module_auto_update/tests/test_module_deprecated.py

2
module_auto_update/migrations/10.0.2.0.0/pre-migrate.py

@ -3,7 +3,7 @@
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl). # License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl).
import logging import logging
from psycopg2 import IntegrityError 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 PARAM_DEPRECATED
_logger = logging.getLogger(__name__) _logger = logging.getLogger(__name__)

4
module_auto_update/models/module.py

@ -7,8 +7,8 @@ import json
import logging import logging
import os 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 from ..addon_hash import addon_hash

6
module_auto_update/tests/test_module.py

@ -8,9 +8,9 @@ import tempfile
import mock 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 ..addon_hash import addon_hash
from ..models.module import IncompleteUpgradeError, DEFAULT_EXCLUDE_PATTERNS from ..models.module import IncompleteUpgradeError, DEFAULT_EXCLUDE_PATTERNS

2
module_auto_update/tests/test_module_deprecated.py

@ -9,7 +9,7 @@ from odoo.modules import get_module_path
from odoo.tests.common import TransactionCase from odoo.tests.common import TransactionCase
from odoo.tools import mute_logger 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 from ..models.module_deprecated import PARAM_DEPRECATED

Loading…
Cancel
Save