From cf8ae7c3d970ccf80e88f70fe35a440c8a31841a Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Tue, 22 Oct 2013 12:57:19 +0530 Subject: [PATCH] [fix] [minor] perpetual inventory related --- controllers/stock_controller.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/controllers/stock_controller.py b/controllers/stock_controller.py index d4c92a90a7..54b6d9f983 100644 --- a/controllers/stock_controller.py +++ b/controllers/stock_controller.py @@ -91,9 +91,6 @@ class StockController(AccountsController): return stock_ledger def get_warehouse_account(self): - for d in webnotes.conn.sql("select name from tabWarehouse"): - webnotes.bean("Warehouse", d[0]).save() - warehouse_account = dict(webnotes.conn.sql("""select master_name, name from tabAccount where account_type = 'Warehouse' and ifnull(master_name, '') != ''""")) return warehouse_account