[fix] don't fetch template item in get items of stock reconciliation

This commit is contained in:
Anand Doshi 2015-09-15 11:54:13 +05:30
parent 86102064a5
commit 69f2cc8d24

View File

@ -243,7 +243,7 @@ class StockReconciliation(StockController):
@frappe.whitelist()
def get_items(warehouse, posting_date, posting_time):
items = frappe.get_list("Item", fields=["name"], filters=
{"is_stock_item": 1, "has_serial_no": 0, "has_batch_no": 0})
{"is_stock_item": 1, "has_serial_no": 0, "has_batch_no": 0, "has_variants": 0})
for item in items:
item.item_code = item.name
item.warehouse = warehouse