From 4cf66b6d0de718fe8339c72811ab88f0c7442e2b Mon Sep 17 00:00:00 2001 From: aheficent Date: Wed, 20 Dec 2017 13:48:26 +0100 Subject: [PATCH] [MIG]rma_purchase v10 --- rma_purchase/{__openerp__.py => __manifest__.py} | 0 rma_purchase/models/purchase_order_line.py | 2 +- rma_purchase/models/rma_order.py | 2 +- rma_purchase/models/rma_order_line.py | 6 +++--- rma_purchase/wizards/rma_add_purchase.py | 4 ++-- rma_purchase/wizards/rma_make_picking.py | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) rename rma_purchase/{__openerp__.py => __manifest__.py} (100%) diff --git a/rma_purchase/__openerp__.py b/rma_purchase/__manifest__.py similarity index 100% rename from rma_purchase/__openerp__.py rename to rma_purchase/__manifest__.py diff --git a/rma_purchase/models/purchase_order_line.py b/rma_purchase/models/purchase_order_line.py index 03f593ed..8f429635 100644 --- a/rma_purchase/models/purchase_order_line.py +++ b/rma_purchase/models/purchase_order_line.py @@ -2,7 +2,7 @@ # Copyright 2017 Eficent Business and IT Consulting Services S.L. # License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html) -from openerp import api, fields, models +from odoo import api, fields, models class PurchaseOrderLine(models.Model): diff --git a/rma_purchase/models/rma_order.py b/rma_purchase/models/rma_order.py index 7d762722..fcf07403 100644 --- a/rma_purchase/models/rma_order.py +++ b/rma_purchase/models/rma_order.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # © 2017 Eficent Business and IT Consulting Services S.L. # License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html) -from openerp import api, fields, models +from odoo import api, fields, models class RmaOrder(models.Model): diff --git a/rma_purchase/models/rma_order_line.py b/rma_purchase/models/rma_order_line.py index 06d6d40c..4ba3680d 100644 --- a/rma_purchase/models/rma_order_line.py +++ b/rma_purchase/models/rma_order_line.py @@ -1,9 +1,9 @@ # -*- coding: utf-8 -*- # © 2017 Eficent Business and IT Consulting Services S.L. # License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html) -from openerp import api, fields, models, _ -from openerp.exceptions import ValidationError -from openerp.addons import decimal_precision as dp +from odoo import api, fields, models, _ +from odoo.exceptions import ValidationError +from odoo.addons import decimal_precision as dp class RmaOrderLine(models.Model): diff --git a/rma_purchase/wizards/rma_add_purchase.py b/rma_purchase/wizards/rma_add_purchase.py index ee0ddc5a..81fe340b 100644 --- a/rma_purchase/wizards/rma_add_purchase.py +++ b/rma_purchase/wizards/rma_add_purchase.py @@ -2,8 +2,8 @@ # © 2017 Eficent Business and IT Consulting Services S.L. # License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html) -from openerp import api, fields, models -from openerp.exceptions import ValidationError +from odoo import api, fields, models +from odoo.exceptions import ValidationError class RmaAddPurchase(models.TransientModel): diff --git a/rma_purchase/wizards/rma_make_picking.py b/rma_purchase/wizards/rma_make_picking.py index be77fcbd..76a8cbfc 100644 --- a/rma_purchase/wizards/rma_make_picking.py +++ b/rma_purchase/wizards/rma_make_picking.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # © 2017 Eficent Business and IT Consulting Services S.L. # License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html) -from openerp import api, fields, models +from odoo import api, fields, models class RmaMakePicking(models.TransientModel):