From 342d10d3367ce7165a111c995578a33cff10d4ad Mon Sep 17 00:00:00 2001 From: lreficent Date: Mon, 13 Nov 2017 12:40:59 +0100 Subject: [PATCH] [FIX] odoo imports --- account_move_line_purchase_info/models/__init__.py | 2 +- account_move_line_purchase_info/models/account_invoice.py | 2 +- account_move_line_purchase_info/models/account_move.py | 2 +- .../models/{stock.py => stock_move.py} | 2 +- .../tests/test_account_move_line_purchase_info.py | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) rename account_move_line_purchase_info/models/{stock.py => stock_move.py} (95%) diff --git a/account_move_line_purchase_info/models/__init__.py b/account_move_line_purchase_info/models/__init__.py index a6157104..ce392315 100644 --- a/account_move_line_purchase_info/models/__init__.py +++ b/account_move_line_purchase_info/models/__init__.py @@ -4,4 +4,4 @@ from . import account_move from . import account_invoice -from . import stock +from . import stock_move diff --git a/account_move_line_purchase_info/models/account_invoice.py b/account_move_line_purchase_info/models/account_invoice.py index 575dbc00..5bee211e 100644 --- a/account_move_line_purchase_info/models/account_invoice.py +++ b/account_move_line_purchase_info/models/account_invoice.py @@ -2,7 +2,7 @@ # © 2017 Eficent Business and IT Consulting Services S.L. (www.eficent.com) # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). -from openerp import api, models +from odoo import api, models class AccountInvoice(models.Model): diff --git a/account_move_line_purchase_info/models/account_move.py b/account_move_line_purchase_info/models/account_move.py index 20822f9d..784bc895 100644 --- a/account_move_line_purchase_info/models/account_move.py +++ b/account_move_line_purchase_info/models/account_move.py @@ -2,7 +2,7 @@ # © 2017 Eficent Business and IT Consulting Services S.L. (www.eficent.com) # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). -from openerp import fields, models +from odoo import fields, models class AccountMoveLine(models.Model): diff --git a/account_move_line_purchase_info/models/stock.py b/account_move_line_purchase_info/models/stock_move.py similarity index 95% rename from account_move_line_purchase_info/models/stock.py rename to account_move_line_purchase_info/models/stock_move.py index 3e45e3ba..ca5f8ad9 100644 --- a/account_move_line_purchase_info/models/stock.py +++ b/account_move_line_purchase_info/models/stock_move.py @@ -2,7 +2,7 @@ # © 2017 Eficent Business and IT Consulting Services S.L. (www.eficent.com) # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). -from openerp import api, models +from odoo import api, models class StockMove(models.Model): diff --git a/account_move_line_purchase_info/tests/test_account_move_line_purchase_info.py b/account_move_line_purchase_info/tests/test_account_move_line_purchase_info.py index 87d31054..d571a855 100644 --- a/account_move_line_purchase_info/tests/test_account_move_line_purchase_info.py +++ b/account_move_line_purchase_info/tests/test_account_move_line_purchase_info.py @@ -2,8 +2,8 @@ # © 2017 Eficent Business and IT Consulting Services S.L. (www.eficent.com) # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). -from openerp.tests import common -from openerp import fields +from odoo.tests import common +from odoo import fields class TestAccountMoveLinePurchaseInfo(common.TransactionCase):