commit | e60de1a33b4124a957eaf347c51f301a84466e71 | [log] [tgz] |
---|---|---|
author | Rushabh Mehta <rmehta@gmail.com> | Wed Jun 22 17:55:01 2011 +0530 |
committer | Rushabh Mehta <rmehta@gmail.com> | Wed Jun 22 17:55:01 2011 +0530 |
tree | 445bdc1aadae07c4e135cb02d15ae6e047242d67 | |
parent | b32c5f2ae17fba8c91154919122134a763ad4170 [diff] |
added repost funtion in stock_ledger
diff --git a/material_management/doctype/stock_ledger/stock_ledger.py b/material_management/doctype/stock_ledger/stock_ledger.py index a52dae7..e67afa6 100644 --- a/material_management/doctype/stock_ledger/stock_ledger.py +++ b/material_management/doctype/stock_ledger/stock_ledger.py
@@ -235,3 +235,10 @@ 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()