Skip to content

Commit

Permalink
fix: TypeError while creating WO from PP (backport #36136) (backport
Browse files Browse the repository at this point in the history
…#36137) (#36138)

fix: `TypeError` while creating WO from PP (backport #36136) (#36137)

fix: `TypeError` while creating WO from PP (#36136)

(cherry picked from commit 8f5b94f)

Co-authored-by: s-aga-r <sagarsharma.s312@gmail.com>
(cherry picked from commit dd51010)

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
mergify[bot] authored Jul 14, 2023
1 parent d420eeb commit c3acdcf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ def show_list_created_message(self, doctype, doc_list=None):
def create_work_order(self, item):
from erpnext.manufacturing.doctype.work_order.work_order import OverProductionError

if item.get("qty") <= 0:
if flt(item.get("qty")) <= 0:
return

wo = frappe.new_doc("Work Order")
Expand Down

0 comments on commit c3acdcf

Please sign in to comment.