test: set schedule date on PO before insert

This commit is contained in:
Shllokkk
2026-08-28 20:02:59 +05:30
parent 4435f166ea
commit 5af60cf2e3

View File

@@ -59,7 +59,9 @@ class TestMaterialRequest(ERPNextTestSuite):
# fully order the first item, leave the second pending
po = make_purchase_order(mr.name)
po.supplier = "_Test Supplier"
po.schedule_date = today()
po.items = [po.items[0]]
po.items[0].schedule_date = today()
po.insert()
po.submit()