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: Skip WIP Warehouse transfer #45200

Closed
wants to merge 3 commits into from
Closed

fix: Skip WIP Warehouse transfer #45200

wants to merge 3 commits into from

Conversation

mihir-kandoi
Copy link
Contributor

Reference support ticket: 29053

WIP warehouse field was not being removed even when "Skip Material Transfer to WIP Warehouse" was enabled. This simple PR fixes that.

no-docs

@github-actions github-actions bot added the needs-tests This PR needs automated unit-tests. label Jan 9, 2025
@@ -1634,7 +1634,6 @@ def test_reserve_sub_assembly_items(self):
for d in work_orders:
wo_doc = frappe.get_doc("Work Order", d.name)
wo_doc.skip_transfer = 1
wo_doc.from_wip_warehouse = 1
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was this put here when skip_transfer is set to 1 just above this line?

@@ -1704,7 +1704,6 @@ def test_so_back_updated_from_wo_via_mr(self):
wo_name = raise_work_orders(mr.name)[0]
wo = frappe.get_doc("Work Order", wo_name)
wo.wip_warehouse = "Work In Progress - _TC"
wo.skip_transfer = True
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why was skip_transfer set to True just after setting WIP warehouse?

@mihir-kandoi
Copy link
Contributor Author

This PR is completely incorrect. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport version-15-hotfix needs-tests This PR needs automated unit-tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant