Skip to content

Commit

Permalink
fix: incorrect status in MR created from PP (#36085)
Browse files Browse the repository at this point in the history
  • Loading branch information
s-aga-r authored Jul 11, 2023
1 parent ce9164e commit be58812
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit be58812

Please sign in to comment.