summaryrefslogtreecommitdiff
path: root/addons/google_calendar/tests
diff options
context:
space:
mode:
authorJulien Castiaux <juc@odoo.com>2020-03-03 15:34:07 +0000
committerRaphael Collet <rco@odoo.com>2020-05-14 14:40:02 +0000
commitd6d0e8d6d28f342a1aa88b31bc6344a371bfcece (patch)
tree6bf3caa0d6ae83631212058f22dc342c3ae4fdee /addons/google_calendar/tests
parent975deb21da316816c09e08167d0bfcecacfcea80 (diff)
[FIX] models.py: remove leftover `import crm` like compatibility
Historically, it was possible to import addons via a naked import. It is no more possible since 9e1f13bac, since that commit, the only possible way to import odoo addons is via the `import odoo.addons' prefix. closes odoo/odoo#46995 Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
Diffstat (limited to 'addons/google_calendar/tests')
-rw-r--r--addons/google_calendar/tests/test_sync_google2odoo.py2
-rw-r--r--addons/google_calendar/tests/test_sync_odoo2google.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/addons/google_calendar/tests/test_sync_google2odoo.py b/addons/google_calendar/tests/test_sync_google2odoo.py
index b882d7ec7b4..bb69331ee46 100644
--- a/addons/google_calendar/tests/test_sync_google2odoo.py
+++ b/addons/google_calendar/tests/test_sync_google2odoo.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
-from addons.google_calendar.utils.google_calendar import GoogleEvent
+from odoo.addons.google_calendar.utils.google_calendar import GoogleEvent
import pytz
from datetime import datetime, date
from odoo.tests.common import SavepointCase, new_test_user
diff --git a/addons/google_calendar/tests/test_sync_odoo2google.py b/addons/google_calendar/tests/test_sync_odoo2google.py
index ae40fe9c57a..7862b1cfaa6 100644
--- a/addons/google_calendar/tests/test_sync_odoo2google.py
+++ b/addons/google_calendar/tests/test_sync_odoo2google.py
@@ -10,7 +10,7 @@ from odoo.addons.google_calendar.utils.google_calendar import GoogleCalendarServ
from odoo.addons.google_calendar.models.res_users import User
from odoo.addons.google_calendar.models.google_sync import GoogleSync
from odoo.modules.registry import Registry
-from addons.google_account.models.google_service import TIMEOUT
+from odoo.addons.google_account.models.google_service import TIMEOUT
def patch_api(func):