fix: only show amended docs in dropdown

This commit is contained in:
Gursheen Anand 2023-10-10 13:02:05 +05:30
parent 091ebdd8dc
commit 53712ed556

View file

@ -16,6 +16,14 @@ frappe.ui.form.on("Audit Trail", {
};
});
frm.set_query("document", () => {
return {
filters: {
amended_from: ["!=", ""],
},
};
});
frm.page.set_primary_action("Compare", () => {
frm.call({
doc: frm.doc,