fix(item): avoid inheriting item defaults from identically named items (#49571)

This commit is contained in:
Imesha Sudasingha
2025-09-17 17:32:13 +05:30
committed by GitHub
parent 87a2774511
commit 9e58a56b5c

View File

@@ -724,7 +724,10 @@ class Item(Document):
item_defaults = frappe.db.get_values(
"Item Default",
{"parent": self.item_group},
{
"parent": self.item_group,
"parenttype": "Item Group",
},
[
"company",
"default_warehouse",