Skip to content

Commit

Permalink
fix: Unknown column 'serial_no' in 'field list' (backport #43515) (#4…
Browse files Browse the repository at this point in the history
…3569)

fix: Unknown column 'serial_no' in 'field list' (#43515)

(cherry picked from commit 69127e8)

Co-authored-by: rohitwaghchaure <rohitw1991@gmail.com>
  • Loading branch information
mergify[bot] and rohitwaghchaure authored Oct 8, 2024
1 parent 9039b86 commit fc9a3c0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion erpnext/manufacturing/doctype/work_order/work_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,6 @@ def create_batch_for_finished_good(self):
def delete_auto_created_batch_and_serial_no(self):
for row in frappe.get_all("Serial No", filters={"work_order": self.name}):
frappe.delete_doc("Serial No", row.name)
self.db_set("serial_no", "")

for row in frappe.get_all("Batch", filters={"reference_name": self.name}):
frappe.delete_doc("Batch", row.name)
Expand Down

0 comments on commit fc9a3c0

Please sign in to comment.