Browse Source

[FIX] Forward port module_auto_update refactoring from 9.0

pull/1207/head
Laurent Mignon (ACSONE) 7 years ago
parent
commit
e4dfebaeb5
  1. 1
      module_auto_update/__manifest__.py
  2. 2
      module_auto_update/migrations/10.0.2.0.0/pre-migrate.py
  3. 4
      module_auto_update/models/module.py
  4. 6
      module_auto_update/tests/test_module.py
  5. 2
      module_auto_update/tests/test_module_deprecated.py

1
module_auto_update/__manifest__.py

@ -17,7 +17,6 @@
'application': False,
'installable': True,
'uninstall_hook': 'uninstall_hook',
},
'depends': [
'base',
],

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).
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__)

4
module_auto_update/models/module.py

@ -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

6
module_auto_update/tests/test_module.py

@ -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

2
module_auto_update/tests/test_module_deprecated.py

@ -10,7 +10,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

Loading…
Cancel
Save