From b0a32f26632f2f9ab39cf5969d5d993dad367831 Mon Sep 17 00:00:00 2001 From: sbejaoui Date: Tue, 1 Oct 2019 11:47:47 +0200 Subject: [PATCH] [12.0][FIX] - Fix unit tests --- product_contract_variable_quantity/models/sale_order_line.py | 3 +-- product_contract_variable_quantity/readme/DESCRIPTION.rst | 2 +- product_contract_variable_quantity/tests/test_sale_order.py | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/product_contract_variable_quantity/models/sale_order_line.py b/product_contract_variable_quantity/models/sale_order_line.py index d66b9874..3cb055ac 100644 --- a/product_contract_variable_quantity/models/sale_order_line.py +++ b/product_contract_variable_quantity/models/sale_order_line.py @@ -3,8 +3,7 @@ # Copyright 2017 ACSONE SA/NV. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from odoo import api, fields, models, _ -from odoo.exceptions import ValidationError +from odoo import api, fields, models class SaleOrderLine(models.Model): diff --git a/product_contract_variable_quantity/readme/DESCRIPTION.rst b/product_contract_variable_quantity/readme/DESCRIPTION.rst index 6e1777db..3e5d5e3c 100644 --- a/product_contract_variable_quantity/readme/DESCRIPTION.rst +++ b/product_contract_variable_quantity/readme/DESCRIPTION.rst @@ -1 +1 @@ -This module enable add default values to contract products for variable quantity formula. \ No newline at end of file +This module add default values to contract products for variable quantity formula. \ No newline at end of file diff --git a/product_contract_variable_quantity/tests/test_sale_order.py b/product_contract_variable_quantity/tests/test_sale_order.py index 6b6a64b5..17485cc9 100644 --- a/product_contract_variable_quantity/tests/test_sale_order.py +++ b/product_contract_variable_quantity/tests/test_sale_order.py @@ -3,7 +3,6 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from odoo.tests.common import TransactionCase -from odoo.exceptions import ValidationError class TestSaleOrder(TransactionCase):