From 639168a7b0dc811c68e5740d4c7c92589ff9b2bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 27 Jan 2023 12:18:14 +0100 Subject: [PATCH] Fill warehouse locations in stock_shipment_measurements tests Since 6efb7bc9d60f the warehouse locations are required but they are not filled in unit test because on_change's are not called. Closes #12045 --- modules/stock_shipment_measurements/tests/test_module.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/stock_shipment_measurements/tests/test_module.py b/modules/stock_shipment_measurements/tests/test_module.py index 4b264e9332..a13282a792 100644 --- a/modules/stock_shipment_measurements/tests/test_module.py +++ b/modules/stock_shipment_measurements/tests/test_module.py @@ -154,6 +154,8 @@ class StockShipmentMeasurementsTestCase(CompanyTestMixin, ModuleTestCase): shipment = Shipment() shipment.customer = party shipment.delivery_address, = party.addresses + shipment.warehouse = Shipment.default_warehouse() + shipment.on_change_warehouse() shipment.save() # without moves