Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(Item Group): allow root deletion #36313

Merged
merged 1 commit into from
Jul 27, 2023

Conversation

barredterra
Copy link
Collaborator

@barredterra barredterra commented Jul 25, 2023

It was not possible to delete an empty, unused Item Group without any children, if it was one of possibly multiple roots of the Item Group tree.

This is very annoying when you created Item Groups for test purposes or want to get rid of old Item Groups.

This fix allows deleting a root Item Group (if it doesn't have any children or linked records).

It was not possible to delete an empty, unused Item Group without any
children, if it was one of possibly multiple roots of the Item Group tree.
This fix allows deleting a root Item Group.
@github-actions github-actions bot added the needs-tests This PR needs automated unit-tests. label Jul 25, 2023
@barredterra barredterra added backport version-14-hotfix backport to version 14 and removed needs-tests This PR needs automated unit-tests. labels Jul 25, 2023
@codecov
Copy link

codecov bot commented Jul 25, 2023

Codecov Report

Merging #36313 (fd2c272) into develop (8c410c6) will increase coverage by 0.00%.
The diff coverage is 11.11%.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop   #36313   +/-   ##
========================================
  Coverage    64.11%   64.11%           
========================================
  Files          785      785           
  Lines        60780    60779    -1     
========================================
  Hits         38970    38970           
+ Misses       21810    21809    -1     
Files Changed Coverage Δ
...t/crm/doctype/twitter_settings/twitter_settings.py 0.00% <0.00%> (ø)
erpnext/setup/doctype/item_group/item_group.py 68.99% <100.00%> (ø)

@deepeshgarg007 deepeshgarg007 merged commit a25f34c into frappe:develop Jul 27, 2023
15 checks passed
deepeshgarg007 added a commit that referenced this pull request Jul 27, 2023
…-36313

fix(Item Group): allow root deletion (#36313)
@barredterra barredterra deleted the delete-root-item-group branch July 27, 2023 17:57
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport version-14-hotfix backport to version 14
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants