From c3ad67cef218368c45cdb29caf8a10d462d8cd68 Mon Sep 17 00:00:00 2001 From: xmo-odoo Date: Fri, 28 Apr 2017 09:07:28 +0200 Subject: [PATCH] [FIX] implicitly relative imports --- __init__.py | 4 ++-- models/__init__.py | 10 +++++----- tests/__init__.py | 8 ++++---- wizard/__init__.py | 4 ++-- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/__init__.py b/__init__.py index 11529f98733..2ae6446f9dc 100644 --- a/__init__.py +++ b/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import models -import wizard +from . import models +from . import wizard diff --git a/models/__init__.py b/models/__init__.py index c1a9355107e..903f2686d6d 100644 --- a/models/__init__.py +++ b/models/__init__.py @@ -1,8 +1,8 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import sale_coupon -import sale_coupon_reward -import sale_coupon_rules -import sale_coupon_program -import sale_order +from . import sale_coupon +from . import sale_coupon_reward +from . import sale_coupon_rules +from . import sale_coupon_program +from . import sale_order diff --git a/tests/__init__.py b/tests/__init__.py index 5392f5c4c27..fd56e193d8c 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import test_program_without_code_operations -import test_program_with_code_operations -import test_program_rules -import test_program_rewards +from . import test_program_without_code_operations +from . import test_program_with_code_operations +from . import test_program_rules +from . import test_program_rewards diff --git a/wizard/__init__.py b/wizard/__init__.py index 41789332003..f098830b610 100644 --- a/wizard/__init__.py +++ b/wizard/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import sale_coupon_apply_code -import sale_coupon_generate +from . import sale_coupon_apply_code +from . import sale_coupon_generate