projects
/
textcart.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb6e6af
)
0002183: Advanced assembly should work with empty BOM. Fixed.
author
Joe Hunt
<joe.hunt.consulting@gmail.com>
Mon, 8 Apr 2013 08:23:50 +0000
(10:23 +0200)
committer
Joe Hunt
<joe.hunt.consulting@gmail.com>
Mon, 8 Apr 2013 08:23:50 +0000
(10:23 +0200)
manufacturing/work_order_release.php
patch
|
blob
|
history
diff --git
a/manufacturing/work_order_release.php
b/manufacturing/work_order_release.php
index 0e9273ed3a2c9790bdbdca7f87a91e3bf193e1d5..10044b7b01f6f6542399bc5501cfe99b6f341063 100644
(file)
--- 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');