mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-13 10:11:20 +00:00
perf: multiple performance fixes in get_item_warehouse (backport #49118)
Co-authored-by: Sagar Vora <16315650+sagarvora@users.noreply.github.com>
This commit is contained in:
@@ -35,7 +35,7 @@ def get_brand_defaults(item, company):
|
||||
|
||||
for d in brand.brand_defaults or []:
|
||||
if d.company == company:
|
||||
row = copy.deepcopy(d.as_dict())
|
||||
row = d.as_dict(no_private_properties=True)
|
||||
row.pop("name")
|
||||
return row
|
||||
|
||||
|
||||
@@ -90,7 +90,7 @@ def get_item_group_defaults(item, company):
|
||||
|
||||
for d in item_group.item_group_defaults or []:
|
||||
if d.company == company:
|
||||
row = copy.deepcopy(d.as_dict())
|
||||
row = d.as_dict(no_private_properties=True)
|
||||
row.pop("name")
|
||||
return row
|
||||
|
||||
|
||||
Reference in New Issue
Block a user