Search dialog filter by workflow status

Hi all,
i’m new erpnext developer.
i create new purchase receive and i want to get item from purchase order.
when i click get item from button. is display purchase order list in dialog box.
i want to filter list by workflow status in this dialog box.

please advice me for filter by workflow status in dialog box

thank.

Does it make any sense to filter the Purchase Order List by workflow state then create Purchase Receipt from selected PO?

i’m try to this

thank.