commit | 8f5b94f5fd6a7ba283f412cb644193264e6f15c7 | [log] [tgz] |
---|---|---|
author | s-aga-r <sagarsharma.s312@gmail.com> | Fri Jul 14 18:01:11 2023 +0530 |
committer | GitHub <noreply@github.com> | Fri Jul 14 18:01:11 2023 +0530 |
tree | 897efe8169e4d9807def0e43d8cab196bc42fb2e | |
parent | 692bfccb6e81e8713e21b3b2704038514982cf2f [diff] |
fix: `TypeError` while creating WO from PP (#36136)
diff --git a/erpnext/manufacturing/doctype/production_plan/production_plan.py b/erpnext/manufacturing/doctype/production_plan/production_plan.py index 5f957a5..a988bad 100644 --- a/erpnext/manufacturing/doctype/production_plan/production_plan.py +++ b/erpnext/manufacturing/doctype/production_plan/production_plan.py
@@ -621,7 +621,7 @@ 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")