Try ERPNext Buy Support Partners Foundation

Populating a select field programmatically/dynamically

Not asking but here is how to populate a select field:

frm.set_df_property('expense_account', 'options', ['option a', 'option b']);