Skip to content

Commit

Permalink
chore: add missing filters for Parent Procedure
Browse files Browse the repository at this point in the history
(cherry picked from commit 8fbd4ce)
  • Loading branch information
s-aga-r authored and mergify[bot] committed Nov 6, 2023
1 parent 828819b commit e560599
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,19 @@

frappe.ui.form.on('Quality Procedure', {
refresh: function(frm) {
frm.set_query("procedure","processes", (frm) =>{
frm.set_query('procedure', 'processes', (frm) =>{
return {
filters: {
name: ["not in", [frm.parent_quality_procedure, frm.name]]
name: ['not in', [frm.parent_quality_procedure, frm.name]]
}
};
});

frm.set_query('parent_quality_procedure', function(){
return {
filters: {
is_group: 1
is_group: 1,
name: ['!=', frm.doc.name]
}
};
});
Expand Down

0 comments on commit e560599

Please sign in to comment.