mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[IMP] stock_vertical_lift_empty_tray_check: black, isort, prettier
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
../../../../stock_vertical_lift_empty_tray_check
|
||||||
6
setup/stock_vertical_lift_empty_tray_check/setup.py
Normal file
6
setup/stock_vertical_lift_empty_tray_check/setup.py
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
import setuptools
|
||||||
|
|
||||||
|
setuptools.setup(
|
||||||
|
setup_requires=['setuptools-odoo'],
|
||||||
|
odoo_addon=True,
|
||||||
|
)
|
||||||
@@ -66,8 +66,7 @@ class TestPick(VerticalLiftCase):
|
|||||||
self.assertEqual(inventory.line_ids[0].theoretical_qty, 0)
|
self.assertEqual(inventory.line_ids[0].theoretical_qty, 0)
|
||||||
|
|
||||||
def test_location_empty_is_not_empty(self):
|
def test_location_empty_is_not_empty(self):
|
||||||
""" Location is indicated as being empty, but it is not.
|
"""Location is indicated as being empty, but it is not."""
|
||||||
"""
|
|
||||||
operation = self._open_screen("pick")
|
operation = self._open_screen("pick")
|
||||||
tray_location = operation.tray_location_id
|
tray_location = operation.tray_location_id
|
||||||
tray_product = operation.current_move_line_id.product_id
|
tray_product = operation.current_move_line_id.product_id
|
||||||
@@ -77,7 +76,8 @@ class TestPick(VerticalLiftCase):
|
|||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
inventory.name,
|
inventory.name,
|
||||||
"{} zero check issue on location {}".format(
|
"{} zero check issue on location {}".format(
|
||||||
self.picking_out.name, tray_location.complete_name,
|
self.picking_out.name,
|
||||||
|
tray_location.complete_name,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
self.assertEqual(inventory.product_ids, tray_product)
|
self.assertEqual(inventory.product_ids, tray_product)
|
||||||
|
|||||||
Reference in New Issue
Block a user