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: don't allow BOM's item code at any level of child items #27175

Merged

Conversation

frappe-pr-bot
Copy link
Collaborator

@frappe-pr-bot frappe-pr-bot commented Aug 26, 2021

Backport c07dce9 from #27157

ankush added 4 commits August 26, 2021 13:04
…27157)

* refactor: bom recursion checking

* fix: dont allow bom recursion

if same item_code is added in child items at any level, it shouldn't be allowed.

* test: add test for bom recursion

* test: fix broken prodplan test using recursive bom

* test: fix recursive bom in tests

(cherry picked from commit c07dce9)

# Conflicts:
#	erpnext/manufacturing/doctype/bom/test_bom.py
#	erpnext/manufacturing/doctype/production_plan/test_production_plan.py
#	erpnext/manufacturing/doctype/work_order/test_work_order.py
[skip ci]
@ankush ankush added the squash Meant to tell reviewers that this PR should be squashed into a single commit while merging. label Aug 26, 2021
@ankush ankush marked this pull request as ready for review August 26, 2021 13:14
@ankush ankush merged commit 1e428f9 into frappe:version-12-hotfix Aug 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
squash Meant to tell reviewers that this PR should be squashed into a single commit while merging.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants