How set filters for frappe select field for child table

I have a child table, and I need to apply filters. I followed the instructions in the documentation select field and wrote the logic in the parent Doctype. Below is my code.


I have also saved the values in the “options” which are same values as in code i.e open, pending and remaining all.
How can I achieve this?