Skip to content

Commit

Permalink
fix: incorrect status in MR created from PP (backport frappe#36085) (f…
Browse files Browse the repository at this point in the history
…rappe#36087)

fix: incorrect status in MR created from PP (frappe#36085)

(cherry picked from commit be58812)

Co-authored-by: s-aga-r <sagarsharma.s312@gmail.com>
  • Loading branch information
mergify[bot] and s-aga-r authored Jul 11, 2023
1 parent 6f2fb89 commit e05bb10
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -675,10 +675,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 e05bb10

Please sign in to comment.