fix(test): Explicitly search for Material Request Item with Item Code
This commit is contained in:
parent
d11e481888
commit
c980143764
@ -152,7 +152,7 @@ class TestProductionPlan(unittest.TestCase):
|
||||
make_bom(item = item, raw_materials = raw_materials)
|
||||
production_plan = create_production_plan(item_code = 'Production Item CUST')
|
||||
production_plan.make_material_request()
|
||||
material_request = frappe.get_value('Material Request Item', {'production_plan': production_plan.name}, 'parent')
|
||||
material_request = frappe.db.get_value('Material Request Item', {'production_plan': production_plan.name, 'item_code': 'CUST-0987'}, 'parent')
|
||||
mr = frappe.get_doc('Material Request', material_request)
|
||||
self.assertTrue(mr.material_request_type, 'Customer Provided')
|
||||
self.assertTrue(mr.customer, '_Test Customer')
|
||||
|
Loading…
Reference in New Issue
Block a user