From 7b8e15c5b8f922b035b75dee37e923a76c1b3d4d Mon Sep 17 00:00:00 2001 From: ruthra kumar Date: Sat, 29 Nov 2025 16:52:45 +0530 Subject: [PATCH] refactor(test): make production plan deterministic --- .../doctype/production_plan/test_production_plan.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/erpnext/manufacturing/doctype/production_plan/test_production_plan.py b/erpnext/manufacturing/doctype/production_plan/test_production_plan.py index e53f1ad6867..127effec91c 100644 --- a/erpnext/manufacturing/doctype/production_plan/test_production_plan.py +++ b/erpnext/manufacturing/doctype/production_plan/test_production_plan.py @@ -549,7 +549,9 @@ class TestProductionPlan(ERPNextTestSuite): make_rm_stock_entry(sco.name) scr = make_subcontracting_receipt(sco.name) scr.submit() - scr_make_purchase_receipt(scr.name).submit() + doc = scr_make_purchase_receipt(scr.name) + doc.currency = "INR" + doc.submit() fg_item = "Test Motherboard 1" bom_tree_1 = {"Test Laptop 1": {fg_item: {"Test Motherboard Wires 1": {}}}}