[fix] [minor] fix in serial no

This commit is contained in:
Nabin Hait
2013-10-08 17:58:41 +05:30
parent 77f37e6b7c
commit 609046990b
2 changed files with 6 additions and 5 deletions

View File

@@ -11,6 +11,7 @@ def execute():
for sr in serial_nos:
sr_bean = webnotes.bean("Serial No", sr[0])
sr_bean.make_controller().via_stock_ledger = True
sr_bean.run_method("validate")
sr_bean.save()
webnotes.conn.sql("""update `tabSerial No` set warehouse='' where status in