[Fix] Error in stock move from batch dashboard (#12377)

This commit is contained in:
rohitwaghchaure 2018-01-09 11:27:35 +05:30 committed by Nabin Hait
parent 0f458b1260
commit 412e044e8f

View File

@ -23,7 +23,7 @@ def make_stock_entry(**args):
def process_serial_numbers(serial_nos_list):
serial_nos_list = [
'\n'.join(serial_num['serial_no'] for serial_num in serial_nos_list)
'\n'.join(serial_num['serial_no'] for serial_num in serial_nos_list if serial_num.serial_no)
]
uniques = list(set(serial_nos_list[0].split('\n')))