Don't show single and child table doctype in User Permission's allowed doctypes (#3973)

This commit is contained in:
Nabin Hait 2017-08-23 11:22:33 +05:30 committed by Makarand Bauskar
parent ca5ce399f0
commit ebaee98ecb

View file

@ -2,6 +2,17 @@
// For license information, please see license.txt
frappe.ui.form.on('User Permission', {
setup: function(frm) {
frm.set_query("allow", function() {
return {
"filters": {
issingle: 0,
istable: 0
}
};
});
},
refresh: function(frm) {
frm.add_custom_button(__('View Permitted Documents'),
() => frappe.set_route('query-report', 'Permitted Documents For User',