From e4deab72ff21ddffba4e73f2e846d87e7f34f457 Mon Sep 17 00:00:00 2001 From: GuillemCForgeFlow Date: Wed, 1 Dec 2021 09:27:19 +0100 Subject: [PATCH] [14.0][MIG]stock_change_qty_reason: Migration to 14.0 --- stock_change_qty_reason/__manifest__.py | 2 +- .../tests/test_stock_change_qty_reason.py | 4 ++-- .../views/stock_inventory_line_view.xml | 24 ------------------- 3 files changed, 3 insertions(+), 27 deletions(-) diff --git a/stock_change_qty_reason/__manifest__.py b/stock_change_qty_reason/__manifest__.py index fa11de90f..4740c78b0 100644 --- a/stock_change_qty_reason/__manifest__.py +++ b/stock_change_qty_reason/__manifest__.py @@ -8,7 +8,7 @@ "author": "ACSONE SA/NV, Odoo Community Association (OCA)", "website": "https://github.com/OCA/stock-logistics-warehouse", "category": "Warehouse Management", - "version": "13.0.1.1.0", + "version": "14.0.1.0.0", "license": "AGPL-3", "depends": ["stock"], "data": [ diff --git a/stock_change_qty_reason/tests/test_stock_change_qty_reason.py b/stock_change_qty_reason/tests/test_stock_change_qty_reason.py index 913143fa2..e7e12d63d 100644 --- a/stock_change_qty_reason/tests/test_stock_change_qty_reason.py +++ b/stock_change_qty_reason/tests/test_stock_change_qty_reason.py @@ -55,10 +55,10 @@ class TestStockQuantityChangeReason(SavepointCase): self.assertEqual(len(inventory.line_ids), 1) inventory.reason = "Reason 2" inventory.onchange_reason() - self.assertEquals(inventory.line_ids.reason, inventory.reason) + self.assertEqual(inventory.line_ids.reason, inventory.reason) inventory.preset_reason_id = self._create_reason("Test 2", "Description Test 2") inventory.onchange_preset_reason() - self.assertEquals( + self.assertEqual( inventory.line_ids.preset_reason_id, inventory.preset_reason_id ) inventory.line_ids[0].write({"product_qty": 10}) diff --git a/stock_change_qty_reason/views/stock_inventory_line_view.xml b/stock_change_qty_reason/views/stock_inventory_line_view.xml index 32bad9428..25cbc3de0 100644 --- a/stock_change_qty_reason/views/stock_inventory_line_view.xml +++ b/stock_change_qty_reason/views/stock_inventory_line_view.xml @@ -24,28 +24,4 @@ - - stock.inventory.line.tree - stock.inventory.line - - - - - - - - - stock.inventory.line.tree.reason.code - stock.inventory.line - - - - - - - -