I have some get_query in my maintenance visit purpose child table, the query is working fine, but I’m having a little problem there.
The query is:
frm.fields_dict.purposes.grid.get_field('scheduled_to').get_query = function () {
return {
filters: {
'department': ['in', ['Diretoria', 'Assistência Técnica']]
}
}
}
The problem is that the field is auto-filled if the user who is logged in is part of this filter group. But I do not want the system to fill this field automatically, because that user can schedule to another user.