mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-20 13:39:18 +00:00
Merge pull request #43523 from frappe/mergify/bp/version-15-hotfix/pr-43385
fix: include parent item group in query (backport #43385)
This commit is contained in:
@@ -862,6 +862,7 @@ def get_item_group(pos_profile):
|
|||||||
if pos_profile.get("item_groups"):
|
if pos_profile.get("item_groups"):
|
||||||
# Get items based on the item groups defined in the POS profile
|
# Get items based on the item groups defined in the POS profile
|
||||||
for row in pos_profile.get("item_groups"):
|
for row in pos_profile.get("item_groups"):
|
||||||
|
item_groups.append(row.item_group)
|
||||||
item_groups.extend(get_descendants_of("Item Group", row.item_group))
|
item_groups.extend(get_descendants_of("Item Group", row.item_group))
|
||||||
|
|
||||||
return list(set(item_groups))
|
return list(set(item_groups))
|
||||||
|
|||||||
Reference in New Issue
Block a user