From 7007f432417386c82a981042893ccfa9d44f421d Mon Sep 17 00:00:00 2001 From: aheficent Date: Tue, 19 Dec 2017 18:15:20 +0100 Subject: [PATCH] [MIG]rma account v10 --- rma_account/{__openerp__.py => __manifest__.py} | 0 rma_account/models/invoice.py | 2 +- rma_account/models/rma_operation.py | 2 +- rma_account/models/rma_order.py | 2 +- rma_account/models/rma_order_line.py | 6 +++--- rma_account/wizards/rma_add_invoice.py | 4 ++-- rma_account/wizards/rma_order_line_make_supplier_rma.py | 2 +- rma_account/wizards/rma_refund.py | 6 +++--- rma_account/wizards/rma_refund.xml | 4 ++-- 9 files changed, 14 insertions(+), 14 deletions(-) rename rma_account/{__openerp__.py => __manifest__.py} (100%) diff --git a/rma_account/__openerp__.py b/rma_account/__manifest__.py similarity index 100% rename from rma_account/__openerp__.py rename to rma_account/__manifest__.py diff --git a/rma_account/models/invoice.py b/rma_account/models/invoice.py index a834d551..d233b7d1 100644 --- a/rma_account/models/invoice.py +++ b/rma_account/models/invoice.py @@ -2,7 +2,7 @@ # © 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 AccountInvoice(models.Model): diff --git a/rma_account/models/rma_operation.py b/rma_account/models/rma_operation.py index 201d1f46..55aeea40 100644 --- a/rma_account/models/rma_operation.py +++ b/rma_account/models/rma_operation.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 fields, models +from odoo import fields, models class RmaOperation(models.Model): diff --git a/rma_account/models/rma_order.py b/rma_account/models/rma_order.py index b925ee93..a92bb76b 100644 --- a/rma_account/models/rma_order.py +++ b/rma_account/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_account/models/rma_order_line.py b/rma_account/models/rma_order_line.py index c1209054..67dc13d2 100644 --- a/rma_account/models/rma_order_line.py +++ b/rma_account/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, UserError -from openerp.addons import decimal_precision as dp +from odoo import _, api, fields, models +from odoo.exceptions import ValidationError, UserError +from odoo.addons import decimal_precision as dp class RmaOrderLine(models.Model): diff --git a/rma_account/wizards/rma_add_invoice.py b/rma_account/wizards/rma_add_invoice.py index a2904943..44f352be 100644 --- a/rma_account/wizards/rma_add_invoice.py +++ b/rma_account/wizards/rma_add_invoice.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 RmaAddInvoice(models.TransientModel): diff --git a/rma_account/wizards/rma_order_line_make_supplier_rma.py b/rma_account/wizards/rma_order_line_make_supplier_rma.py index 08e9db96..ead4574d 100644 --- a/rma_account/wizards/rma_order_line_make_supplier_rma.py +++ b/rma_account/wizards/rma_order_line_make_supplier_rma.py @@ -2,7 +2,7 @@ # Copyright 2016 Eficent Business and IT Consulting Services S.L. # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl-3.0). -from openerp import api, models +from odoo import api, models class RmaLineMakeSupplierRma(models.TransientModel): diff --git a/rma_account/wizards/rma_refund.py b/rma_account/wizards/rma_refund.py index 6180115e..436e946f 100644 --- a/rma_account/wizards/rma_refund.py +++ b/rma_account/wizards/rma_refund.py @@ -2,9 +2,9 @@ # © 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 -import openerp.addons.decimal_precision as dp +from odoo import _, api, fields, models +from odoo.exceptions import ValidationError +import odoo.addons.decimal_precision as dp class RmaRefund(models.TransientModel): diff --git a/rma_account/wizards/rma_refund.xml b/rma_account/wizards/rma_refund.xml index 65b07fe0..52efcd46 100644 --- a/rma_account/wizards/rma_refund.xml +++ b/rma_account/wizards/rma_refund.xml @@ -1,5 +1,5 @@ - + @@ -82,4 +82,4 @@ - +