fix: filter single and child table doctypes
This commit is contained in:
parent
24a75f74b7
commit
4d9a67f32c
1 changed files with 9 additions and 1 deletions
|
|
@ -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';
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue