diff --git a/material_management/doctype/stock_ledger/stock_ledger.py b/material_management/doctype/stock_ledger/stock_ledger.py index a52dae7590..e67afa623b 100644 --- a/material_management/doctype/stock_ledger/stock_ledger.py +++ b/material_management/doctype/stock_ledger/stock_ledger.py @@ -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()