From 0ea430fd50463fdcedb1f1440283ec76b36cbc0e Mon Sep 17 00:00:00 2001 From: sygel Date: Mon, 3 Feb 2025 18:34:14 +0100 Subject: [PATCH] [MIG] stock_picking_auto_create_lot_sequence: Migration to 17.0 --- .../__manifest__.py | 2 +- .../test_stock_picking_auto_create_lot_sequence.py | 11 ++--------- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/stock_picking_auto_create_lot_sequence/__manifest__.py b/stock_picking_auto_create_lot_sequence/__manifest__.py index 17147335b052..998ba6c3514e 100644 --- a/stock_picking_auto_create_lot_sequence/__manifest__.py +++ b/stock_picking_auto_create_lot_sequence/__manifest__.py @@ -3,7 +3,7 @@ { "name": "Stock Picking Auto Create Lot Sequence", - "version": "16.0.1.0.0", + "version": "17.0.1.0.0", "license": "AGPL-3", "author": "Quartile, Odoo Community Association (OCA)", "website": "https://github.com/OCA/stock-logistics-workflow", diff --git a/stock_picking_auto_create_lot_sequence/tests/test_stock_picking_auto_create_lot_sequence.py b/stock_picking_auto_create_lot_sequence/tests/test_stock_picking_auto_create_lot_sequence.py index 2e01fb409f8e..b4ac7dcb8b79 100644 --- a/stock_picking_auto_create_lot_sequence/tests/test_stock_picking_auto_create_lot_sequence.py +++ b/stock_picking_auto_create_lot_sequence/tests/test_stock_picking_auto_create_lot_sequence.py @@ -1,7 +1,7 @@ # Copyright 2024 Quartile (https://www.quartile.co) # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -from odoo.tests.common import Form, TransactionCase +from odoo.tests.common import TransactionCase class TestStockPickingProductLotSequence(TransactionCase): @@ -55,13 +55,6 @@ def test_stock_picking_product_lot_sequence(self): self.assertRegex(next_serial, r"Test/\d{5}") self.picking.action_confirm() self.picking.action_assign() - immediate_wizard = self.picking.button_validate() - self.assertEqual(immediate_wizard.get("res_model"), "stock.immediate.transfer") - immediate_wizard_form = Form( - self.env[immediate_wizard["res_model"]].with_context( - **immediate_wizard["context"] - ) - ).save() - immediate_wizard_form.process() + self.picking.button_validate() for move_line in self.picking.move_line_ids: self.assertRegex(move_line.lot_name, r"Test/\d{5}")