Skip to content

Commit

Permalink
[MIG] stock_picking_auto_create_lot_sequence: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Tisho99 committed Feb 4, 2025
1 parent 5f01d21 commit 0ea430f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion stock_picking_auto_create_lot_sequence/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
@@ -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):
Expand Down Expand Up @@ -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}")

0 comments on commit 0ea430f

Please sign in to comment.