From 00d70c6865325fd201e53b44b7a5083e5a3a90f5 Mon Sep 17 00:00:00 2001 From: s-aga-r Date: Tue, 11 Jul 2023 17:09:23 +0530 Subject: [PATCH] fix: incorrect status in MR created from PP (#36085) (cherry picked from commit be5881280fae54c1de9d0cbb4f90d54f958aa7ed) --- .../manufacturing/doctype/production_plan/production_plan.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/erpnext/manufacturing/doctype/production_plan/production_plan.py b/erpnext/manufacturing/doctype/production_plan/production_plan.py index 6dc1ff6a49f5..5f957a5442b2 100644 --- a/erpnext/manufacturing/doctype/production_plan/production_plan.py +++ b/erpnext/manufacturing/doctype/production_plan/production_plan.py @@ -697,10 +697,9 @@ def make_material_request(self): material_request.flags.ignore_permissions = 1 material_request.run_method("set_missing_values") + material_request.save() if self.get("submit_material_request"): material_request.submit() - else: - material_request.save() frappe.flags.mute_messages = False