Hi all,
I have tried to change on the Source of frappe for Module Profile…
Added the Validate def but it is not called.
Can someone tell me what is the way to have it ?
Why i need this… To save the changes made to an existing Profile. Otherwise, if i have 100 users with same profile assigned will require me to go through all in case of change…
Thank’s in advance.
Actually, no need the validate…
applying the below code on JS any changes can be saved
document.onclick= function(event) {
if (event===undefined) event= window;
var target= ‘target’ in event? event.target : event.srcElement;
if (target.tagName === “INPUT”){
$(document.getElementsByClassName(“block-module-check”)).trigger(‘change’);
}
};
Hope can be used also by someone else or even added on the CORE because with this i don’t need to DUPLICATE an existing or create a new Module Profile.