Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: OCA/stock-logistics-warehouse
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: b3efc84a6b2fac04855b736ecc124a291c9e0fd5
Choose a base ref
..
head repository: OCA/stock-logistics-warehouse
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 8408247f76cb19e26388915c932b4210677e6ca9
Choose a head ref
Showing with 5 additions and 7 deletions.
  1. +1 −0 stock_location_tray/tests/common.py
  2. +3 −0 stock_location_tray/tests/test_location.py
  3. +1 −7 stock_location_tray/tests/test_tray_type.py
1 change: 1 addition & 0 deletions stock_location_tray/tests/common.py
Original file line number Diff line number Diff line change
@@ -8,6 +8,7 @@ class LocationTrayTypeCase(common.SavepointCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
cls.wh = cls.env.ref("stock.warehouse0")
cls.stock_location = cls.env.ref("stock.stock_location_stock")
cls.product = cls.env.ref("product.product_delivery_02")
cls.tray_location = cls.env.ref("stock_location_tray.stock_location_tray_demo")
3 changes: 3 additions & 0 deletions stock_location_tray/tests/test_location.py
Original file line number Diff line number Diff line change
@@ -143,6 +143,9 @@ def test_check_active_not_empty(self):
# restore state for the next test loop
location.active = True
location = location.location_id
if location == self.wh.lot_stock_id:
# we can't disable the Stock location anyway
break

def test_change_tray_type_when_empty(self):
tray_type = self.tray_type_small_32x
8 changes: 1 addition & 7 deletions stock_location_tray/tests/test_tray_type.py
Original file line number Diff line number Diff line change
@@ -20,13 +20,7 @@ def setUpClass(cls):
def test_tray_type(self):
# any location created directly under the view is a shuttle
tray_type = self.env["stock.location.tray.type"].create(
{
"name": "Test Type",
"code": "🐵",
"usage": "internal",
"rows": 4,
"cols": 6,
}
{"name": "Test Type", "code": "🐵", "rows": 4, "cols": 6}
)
self.assertEqual(
tray_type.tray_matrix,