How to set filter for TableMultiselect field?
plate_investigators is my field name which is connect to Cadastral Emails has one user fields.
cur_frm.set_query("plate_investigators", function(doc, cdt, cdn) {
var d = locals[cdt][cdn];
return {
filters: [
['User', 'role', '=', 'SAID Chief']
]
};
})
I tried this one but I got error,
"AttributeError: 'list' object has no attribute 'get'",