fix: only show amended docs in dropdown
This commit is contained in:
parent
091ebdd8dc
commit
53712ed556
1 changed files with 8 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue