added repost funtion in stock_ledger

This commit is contained in:
Rushabh Mehta 2011-06-22 17:55:01 +05:30
parent b32c5f2ae1
commit e60de1a33b

View File

@ -235,3 +235,10 @@ class DocType:
sle_obj.validate()
sle.save(new = 1)
return sle.name
def repost(self):
"""
Repost everything!
"""
for wh in sql("select name from tabWarehouse"):
get_obj('Warehouse', wh[0]).repost_stock()