[FIX] *: replace openerp addons import by odoo

Importing addons using the `openerp` anchor is depreciated by #36597
This commit is contained in:
Julien Castiaux
2019-09-16 09:31:38 +00:00
parent fd9875adad
commit 760ab74f83
9 changed files with 8 additions and 9 deletions
@@ -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"
+1 -1
View File
@@ -8,7 +8,7 @@ from binascii import Error as binascii_error
from collections import defaultdict
from operator import itemgetter
from email.utils import formataddr
from openerp.http import request
from odoo.http import request
from odoo import _, api, fields, models, modules, tools
from odoo.exceptions import UserError, AccessError
@@ -3,7 +3,6 @@
import odoo
import time
from odoo import fields
from odoo.tests import common
class TestAngloSaxonCommon(common.TransactionCase):
@@ -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
@@ -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
@@ -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
@@ -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):
@@ -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
@@ -3,7 +3,7 @@
Non-Regression Tests
"""
from openerp.tests.common import TransactionCase
from odoo.tests.common import TransactionCase
class TestNR(TransactionCase):