[patch][serial no] for striped serial nos

This commit is contained in:
Nabin Hait 2013-04-01 17:25:28 +05:30
parent acd0443778
commit 94d1622691

View File

@ -39,7 +39,7 @@ class DocType:
for d in getlist(obj.doclist, table_name):
if d.serial_no:
serial_nos = cstr(d.serial_no).strip().replace(',', '\n').split('\n')
d.serial_nos = ", ".join(map(lambda x: x.strip(), serial_nos))
d.serial_nos = "\n".join(map(lambda x: x.strip(), serial_nos))
d.save()
def validate_serial_no_warehouse(self, obj, fname):