Modify the default set_query filtration of item master

How to modify the default set_query filtration of
deferred_expense_account In item master, we need to show some asset group ledgers also in the list.

Just try frm.set_query in a .js file (hooked to the doctype) on refresh event, which calls a query method in a .py file.

The method should return the accounts based on the required filters that you set.

You can read more here
https://frappeframework.com/docs/user/en/guides/app-development/overriding-link-query-by-custom-script

1 Like