mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-12 11:25:09 +00:00
Co-authored-by: Mihir Kandoi <kandoimihir@gmail.com> fix: do not check for sub assembly reference for rm of fg (#53758)
This commit is contained in:
@@ -616,7 +616,12 @@ class ProductionPlan(Document):
|
|||||||
None,
|
None,
|
||||||
):
|
):
|
||||||
item.db_set("sub_assembly_item_reference", reference)
|
item.db_set("sub_assembly_item_reference", reference)
|
||||||
elif self.reserve_stock and item.main_item_code and item.from_bom:
|
elif (
|
||||||
|
self.reserve_stock
|
||||||
|
and item.main_item_code
|
||||||
|
and item.from_bom
|
||||||
|
and item.main_item_code != frappe.get_cached_value("BOM", item.from_bom, "item")
|
||||||
|
):
|
||||||
frappe.throw(
|
frappe.throw(
|
||||||
_(
|
_(
|
||||||
"Sub assembly item references are missing. Please fetch the sub assemblies and raw materials again."
|
"Sub assembly item references are missing. Please fetch the sub assemblies and raw materials again."
|
||||||
|
|||||||
Reference in New Issue
Block a user