diff --git a/erpnext/stock/doctype/landed_cost_wizard/landed_cost_wizard.py b/erpnext/stock/doctype/landed_cost_wizard/landed_cost_wizard.py index c2df6c1a71a..f73845c80a6 100644 --- a/erpnext/stock/doctype/landed_cost_wizard/landed_cost_wizard.py +++ b/erpnext/stock/doctype/landed_cost_wizard/landed_cost_wizard.py @@ -236,7 +236,7 @@ class DocType: def update_serial_no(self, sr_no, rate): """ update valuation rate in serial no""" - sr_no = sr_no.split('\n') + sr_no = cstr(sr_no).split('\n') for d in sr_no: sql("update `tabSerial No` set purchase_rate = %s where name = %s", (rate, d))