Sales BOM to Product Bundle rename changes

This commit is contained in:
Neil Trini Lasrado 2015-07-13 14:17:42 +05:30
parent 0a45260ed9
commit 1cd049d824

View File

@ -40,7 +40,7 @@ class SalesOrder(SellingController):
check_list.append(cstr(d.item_code)) check_list.append(cstr(d.item_code))
if (frappe.db.get_value("Item", d.item_code, "is_stock_item") == 'Yes' or if (frappe.db.get_value("Item", d.item_code, "is_stock_item") == 'Yes' or
self.has_sales_bom(d.item_code)) and not d.warehouse: self.has_product_bundle(d.item_code)) and not d.warehouse:
frappe.throw(_("Reserved warehouse required for stock item {0}").format(d.item_code)) frappe.throw(_("Reserved warehouse required for stock item {0}").format(d.item_code))
# used for production plan # used for production plan