mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-12 22:21:50 +00:00
test: target warehouse stays optional for semi FG work orders
This commit is contained in:
@@ -5119,6 +5119,13 @@ class TestWorkOrder(ERPNextTestSuite):
|
||||
wo.wip_warehouse = "_Test Warehouse - _TC"
|
||||
wo.validate_warehouse()
|
||||
|
||||
# the top-level target warehouse stays optional; operations may carry their own
|
||||
wo.fg_warehouse = None
|
||||
wo.validate_warehouse()
|
||||
|
||||
wo.track_semi_finished_goods = 0
|
||||
self.assertRaises(frappe.ValidationError, wo.validate_warehouse)
|
||||
|
||||
|
||||
def get_reserved_entries(voucher_no, warehouse=None):
|
||||
doctype = frappe.qb.DocType("Stock Reservation Entry")
|
||||
|
||||
Reference in New Issue
Block a user