fix: filter single and child table doctypes

This commit is contained in:
Rucha Mahabal 2019-12-26 12:35:58 +05:30
parent 24a75f74b7
commit 4d9a67f32c

View file

@ -3,7 +3,15 @@
frappe.ui.form.on('Event Producer', {
refresh: function(frm) {
// formatter for subscribed doctype approval status
frm.set_query('ref_doctype', 'event_configuration', function() {
return {
filters: {
issingle: 0,
istable: 0
}
};
});
frm.set_indicator_formatter('status',
function(doc) {
let indicator = 'orange';