fix: ignore permissions when cancelling revaluation journal entry

This commit is contained in:
Navin-S-R
2026-01-11 21:30:09 +05:30
parent 5f00239bba
commit 500c44e3f5

View File

@@ -173,6 +173,8 @@ class AssetValueAdjustment(Document):
revaluation_entry = frappe.get_doc("Journal Entry", self.journal_entry)
if revaluation_entry.docstatus == 1:
# Ignore permissions to match Journal Entry submission behavior
revaluation_entry.flags.ignore_permissions = True
revaluation_entry.cancel()
def update_asset(self):