This commit is contained in:
Nabin Hait
2014-04-04 11:06:10 +05:30
parent c10213d861
commit 312ba99e71
11 changed files with 13 additions and 14 deletions

View File

@@ -50,7 +50,7 @@ class BuyingController(StockController):
from erpnext.stock.utils import validate_warehouse_company
warehouses = list(set([d.warehouse for d in
self.get(self.fname) if d.warehouse]))
self.get(self.fname) if getattr(d, "warehouse", None)]))
for w in warehouses:
validate_warehouse_company(w, self.company)