Skip to content

Commit 59e6545

Browse files
committed
[IMP] Change imports
1 parent 68ab355 commit 59e6545

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

pytest_odoo.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,16 @@
1919
import pytest
2020

2121
import odoo
22+
if not hasattr(odoo, "tools"):
23+
from odoo import tools, service, release, api, tests, sql_db, modules
24+
else:
25+
import odoo.tools
26+
import odoo.service
27+
import odoo.release
28+
import odoo.api
29+
import odoo.tests
30+
import odoo.sql_db
31+
import odoo.modules
2232

2333

2434
def pytest_addoption(parser):

0 commit comments

Comments
 (0)