fix: allow assets with depr entries to be cancelled (#35477)

fix: allow asset with depr entries to be cancelled
This commit is contained in:
Anand Baburajan 2023-05-30 16:28:57 +05:30 committed by GitHub
parent 7a3d16fc61
commit dbdc420066
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,6 +41,8 @@ frappe.ui.form.on('Asset', {
},
setup: function(frm) {
frm.ignore_doctypes_on_cancel_all = ['Journal Entry'];
frm.make_methods = {
'Asset Movement': () => {
frappe.call({