From 2ae08e8fd6ad19511b3d6d64f80eef0455a0cadf Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Fri, 20 Jul 2012 10:41:02 +0530 Subject: [PATCH] error fixed in landed cost wizard --- erpnext/stock/doctype/landed_cost_wizard/landed_cost_wizard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 c2df6c1a71..f73845c80a 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))