Skip to content

Commit

Permalink
[MIG] stock_picking_line_sequence: Migration to 16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bosd committed Jun 23, 2023
1 parent 481d02c commit 7a88b45
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion stock_picking_line_sequence/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{
"name": "Stock picking lines with sequence number",
"summary": "Manages the order of stock moves by displaying its sequence",
"version": "15.0.1.0.2",
"version": "16.0.1.0.0",
"category": "Warehouse Management",
"author": "Camptocamp, "
"Eficent, "
Expand Down
20 changes: 10 additions & 10 deletions stock_picking_line_sequence/tests/test_move_lines_sequence.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def _create_picking(self):
"picking_type_id": self.picking_type_in.id,
"location_id": self.supplier_location.id,
"location_dest_id": self.customer_location.id,
"move_lines": [
"move_ids": [
(
0,
0,
Expand Down Expand Up @@ -71,21 +71,21 @@ def test_move_lines_sequence(self):

self.picking = self._create_picking()
self.picking._compute_max_line_sequence()
self.picking.move_lines.write({"product_uom_qty": 10.0})
self.picking.move_ids.write({"product_uom_qty": 10.0})
self.picking2 = self.picking.copy()
self.assertEqual(
self.picking2[0].move_lines[0].sequence,
self.picking.move_lines[0].sequence,
self.picking2[0].move_ids[0].sequence,
self.picking.move_ids[0].sequence,
"The Sequence is not copied properly",
)
self.assertEqual(
self.picking2[0].move_lines[1].sequence,
self.picking.move_lines[1].sequence,
self.picking2[0].move_ids[1].sequence,
self.picking.move_ids[1].sequence,
"The Sequence is not copied properly",
)
self.assertEqual(
self.picking2[0].move_lines[2].sequence,
self.picking.move_lines[2].sequence,
self.picking2[0].move_ids[2].sequence,
self.picking.move_ids[2].sequence,
"The Sequence is not copied properly",
)

Expand All @@ -105,10 +105,10 @@ def test_backorder(self):
backorder_wiz.process()
picking_backorder = self.Picking.search([("backorder_id", "=", picking.id)])
self.assertEqual(
picking_backorder[0].move_lines[1].sequence, 3, "Backorder wrong sequence"
picking_backorder[0].move_ids[1].sequence, 3, "Backorder wrong sequence"
)
self.assertEqual(
picking_backorder[0].move_lines[0].sequence, 1, "Backorder wrong sequence"
picking_backorder[0].move_ids[0].sequence, 1, "Backorder wrong sequence"
)

def test_move_lines_aggregated(self):
Expand Down

0 comments on commit 7a88b45

Please sign in to comment.