From 8fe1904f3f1e2bfab68ba6514984e0a13a34aedc Mon Sep 17 00:00:00 2001 From: s-aga-r Date: Tue, 6 Jun 2023 14:56:29 +0530 Subject: [PATCH] fix(test): `test_stock_reservation_against_sales_order` --- erpnext/selling/doctype/sales_order/test_sales_order.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/erpnext/selling/doctype/sales_order/test_sales_order.py b/erpnext/selling/doctype/sales_order/test_sales_order.py index e58bc73949..6459deffaa 100644 --- a/erpnext/selling/doctype/sales_order/test_sales_order.py +++ b/erpnext/selling/doctype/sales_order/test_sales_order.py @@ -1772,7 +1772,14 @@ class TestSalesOrder(FrappeTestCase): self.assertEqual(pe.references[1].reference_name, so.name) self.assertEqual(pe.references[1].allocated_amount, 300) - @change_settings("Stock Settings", {"enable_stock_reservation": 1}) + @change_settings( + "Stock Settings", + { + "enable_stock_reservation": 1, + "auto_create_serial_and_batch_bundle_for_outward": 1, + "pick_serial_and_batch_based_on": "FIFO", + }, + ) def test_stock_reservation_against_sales_order(self) -> None: from random import randint, uniform