From c77108fc089088aa25aa59d7571762ce12d8066b Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Mon, 8 Apr 2013 10:23:50 +0200 Subject: [PATCH] 0002183: Advanced assembly should work with empty BOM. Fixed. --- manufacturing/work_order_release.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/manufacturing/work_order_release.php b/manufacturing/work_order_release.php index 0e9273ed..10044b7b 100644 --- a/manufacturing/work_order_release.php +++ b/manufacturing/work_order_release.php @@ -52,7 +52,10 @@ function can_process($myrow) } // make sure item has components - if (!has_bom($myrow['stock_id'])) + // We don't need to stop the user to release it if it's and advanced order. + // The user know what he is doing. + + if (!has_bom($myrow['stock_id']) && $myrow['type'] != WO_ADVANCED) { display_error(_("This Work Order cannot be released. The selected item to manufacture does not have a bom.")); set_focus('stock_id'); -- 2.30.2