From f6a024a460a8e27c93bfa6f9c84b1f65c6785582 Mon Sep 17 00:00:00 2001 From: Tyler Matteson Date: Tue, 24 Mar 2026 13:37:04 -0400 Subject: [PATCH] feat: add bypass flag for recombine handling units --- beam/beam/overrides/stock_entry.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/beam/beam/overrides/stock_entry.py b/beam/beam/overrides/stock_entry.py index 24297311..b4627ff5 100644 --- a/beam/beam/overrides/stock_entry.py +++ b/beam/beam/overrides/stock_entry.py @@ -165,6 +165,9 @@ def validate_items_with_handling_unit(doc, method=None): if not beam_settings.enable_handling_units: return + if frappe.flags.get("beam_allow_source_rows_without_hu"): + return + if doc.stock_entry_type != "Material Receipt": for row in doc.items: if not frappe.get_value("Item", row.item_code, "enable_handling_unit"):