Skip to content

Commit

Permalink
[MIG] stock_restrict_lot: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jcadhoc committed Aug 6, 2024
1 parent bb2cd8a commit 9687771
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion stock_restrict_lot/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Stock Restrict Lot",
"summary": "Base module that add back the concept of restrict lot on stock move",
"version": "16.0.1.1.0",
"version": "17.0.1.0.0",
"category": "Warehouse Management",
"website": "https://github.com/OCA/stock-logistics-workflow",
"author": "Akretion, Odoo Community Association (OCA)",
Expand Down
4 changes: 2 additions & 2 deletions stock_restrict_lot/models/stock_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ def _get_available_quantity(
def _update_reserved_quantity(
self,
need,
available_quantity,
location_id,
quant_ids=None,
lot_id=None,
package_id=None,
owner_id=None,
Expand All @@ -75,8 +75,8 @@ def _update_reserved_quantity(
lot_id = self.restrict_lot_id
return super()._update_reserved_quantity(
need,
available_quantity,
location_id,
quant_ids=quant_ids,
lot_id=lot_id,
package_id=package_id,
owner_id=owner_id,
Expand Down
4 changes: 3 additions & 1 deletion stock_restrict_lot/tests/test_restrict_lot.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,9 @@ def assert_move_line_per_lot_and_location(
and mov.location_id == expect_from_location
)
self.assertEqual(len(concern_move_line), 1)
self.assertEqual(concern_move_line.reserved_uom_qty, expect_reserved_qty)
self.assertEqual(
concern_move_line.quantity_product_uom, expect_reserved_qty
)

pickings = self.env["stock.picking"].search(
[("group_id", "=", procurement_group.id)]
Expand Down

0 comments on commit 9687771

Please sign in to comment.