How to validate items in purchase order to show supplier items only

is there an option to validate purchase order in selecting items to show only
items witch linked with supplier that written in purchase order ??

if it is not found how can i do that ??

@m_anssary,

You can filter the items by supplier using get_query method, you will need to write the custom script to filter the items.

Please check the following url

cur_frm.fields_dict[‘items’].grid.get_field(‘project’).get_query