summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorJulien Castiaux <juc@odoo.com>2019-09-09 12:44:50 +0000
committerXavier Morel <xmo@odoo.com>2019-09-20 05:58:41 +0000
commite7506b88d272ac3eaf415b6c3b3c1a00f338b0c2 (patch)
tree6b3f94ddd404d3c6d38bc675550e47fde304ae28 /addons
parentd47083e6d219bdd2ca0e36a41aef5274f67a70f1 (diff)
[FIX] *: replace openerp addons import by odoo
Importing addons using the `openerp` anchor is depreciated by #36597
Diffstat (limited to 'addons')
-rw-r--r--addons/account_check_printing/models/res_company.py2
-rw-r--r--addons/mail/models/mail_message.py3
-rw-r--r--addons/point_of_sale/tests/test_anglo_saxon.py1
-rw-r--r--addons/sale_coupon/tests/test_program_numbers.py2
-rw-r--r--addons/sale_coupon/tests/test_program_rules.py2
-rw-r--r--addons/sale_coupon/tests/test_program_with_code_operations.py2
-rw-r--r--addons/sale_coupon/tests/test_program_without_code_operations.py2
-rw-r--r--addons/sale_coupon_delivery/tests/test_free_shipping_reward.py2
8 files changed, 8 insertions, 8 deletions
diff --git a/addons/account_check_printing/models/res_company.py b/addons/account_check_printing/models/res_company.py
index 44127a4077e..fb985473744 100644
--- a/addons/account_check_printing/models/res_company.py
+++ b/addons/account_check_printing/models/res_company.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
-from openerp import models, api, fields
+from odoo import models, api, fields
class res_company(models.Model):
_inherit = "res.company"
diff --git a/addons/mail/models/mail_message.py b/addons/mail/models/mail_message.py
index 2e8b1e0441d..8770e29eadf 100644
--- a/addons/mail/models/mail_message.py
+++ b/addons/mail/models/mail_message.py
@@ -7,7 +7,8 @@ import re
from binascii import Error as binascii_error
from collections import defaultdict
from operator import itemgetter
-from openerp.http import request
+from email.utils import formataddr
+from odoo.http import request
from odoo import _, api, fields, models, modules, tools
from odoo.exceptions import UserError, AccessError
diff --git a/addons/point_of_sale/tests/test_anglo_saxon.py b/addons/point_of_sale/tests/test_anglo_saxon.py
index 78ebbb8ae4a..a2d997bc654 100644
--- a/addons/point_of_sale/tests/test_anglo_saxon.py
+++ b/addons/point_of_sale/tests/test_anglo_saxon.py
@@ -3,7 +3,6 @@
import odoo
import time
from odoo import fields
-
from odoo.tests import common
class TestAngloSaxonCommon(common.TransactionCase):
diff --git a/addons/sale_coupon/tests/test_program_numbers.py b/addons/sale_coupon/tests/test_program_numbers.py
index 192aa3f9777..bee32f684a3 100644
--- a/addons/sale_coupon/tests/test_program_numbers.py
+++ b/addons/sale_coupon/tests/test_program_numbers.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
-from openerp.addons.sale_coupon.tests.common import TestSaleCouponCommon
+from odoo.addons.sale_coupon.tests.common import TestSaleCouponCommon
from odoo.exceptions import UserError
from odoo.tests import tagged
diff --git a/addons/sale_coupon/tests/test_program_rules.py b/addons/sale_coupon/tests/test_program_rules.py
index beacbe31d7f..f686180bdfd 100644
--- a/addons/sale_coupon/tests/test_program_rules.py
+++ b/addons/sale_coupon/tests/test_program_rules.py
@@ -3,7 +3,7 @@
from datetime import datetime, timedelta
-from openerp.addons.sale_coupon.tests.common import TestSaleCouponCommon
+from odoo.addons.sale_coupon.tests.common import TestSaleCouponCommon
from odoo.exceptions import UserError
from odoo.fields import Date
diff --git a/addons/sale_coupon/tests/test_program_with_code_operations.py b/addons/sale_coupon/tests/test_program_with_code_operations.py
index 2a19854f25e..90452422a3b 100644
--- a/addons/sale_coupon/tests/test_program_with_code_operations.py
+++ b/addons/sale_coupon/tests/test_program_with_code_operations.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
-from openerp.addons.sale_coupon.tests.common import TestSaleCouponCommon
+from odoo.addons.sale_coupon.tests.common import TestSaleCouponCommon
from odoo.exceptions import UserError
diff --git a/addons/sale_coupon/tests/test_program_without_code_operations.py b/addons/sale_coupon/tests/test_program_without_code_operations.py
index 6d789e5b115..b2bd462993d 100644
--- a/addons/sale_coupon/tests/test_program_without_code_operations.py
+++ b/addons/sale_coupon/tests/test_program_without_code_operations.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
-from openerp.addons.sale_coupon.tests.common import TestSaleCouponCommon
+from odoo.addons.sale_coupon.tests.common import TestSaleCouponCommon
class TestProgramWithoutCodeOperations(TestSaleCouponCommon):
diff --git a/addons/sale_coupon_delivery/tests/test_free_shipping_reward.py b/addons/sale_coupon_delivery/tests/test_free_shipping_reward.py
index d840e52e7b9..b34bac4c2a1 100644
--- a/addons/sale_coupon_delivery/tests/test_free_shipping_reward.py
+++ b/addons/sale_coupon_delivery/tests/test_free_shipping_reward.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
-from openerp.addons.sale_coupon.tests.common import TestSaleCouponCommon
+from odoo.addons.sale_coupon.tests.common import TestSaleCouponCommon
from odoo.tests import Form, tagged