From 6b5f39d41bdbc110d667cd10e0eacdaa3606d472 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 ba51ba5c5d0..716a59e8148 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": {}}}}