mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-08 15:42:52 +00:00
[fix] in set_valuation_method check for is group condition
This commit is contained in:
@@ -116,7 +116,8 @@ def create_stock_reconciliation(**args):
|
||||
def set_valuation_method(item_code, valuation_method):
|
||||
frappe.db.set_value("Item", item_code, "valuation_method", valuation_method)
|
||||
|
||||
for warehouse in frappe.get_all("Warehouse", filters={"company": "_Test Company"}):
|
||||
for warehouse in frappe.get_all("Warehouse", filters={"company": "_Test Company"}, fields=["name", "is_group"]):
|
||||
if warehouse.is_group == "No":
|
||||
update_entries_after({
|
||||
"item_code": item_code,
|
||||
"warehouse": warehouse.name
|
||||
|
||||
Reference in New Issue
Block a user