mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-13 09:43:49 +00:00
fix: ignore permissions when cancelling revaluation journal entry
(cherry picked from commit 500c44e3f5)
This commit is contained in:
@@ -210,6 +210,8 @@ class AssetValueAdjustment(Document):
|
|||||||
|
|
||||||
revaluation_entry = frappe.get_doc("Journal Entry", self.journal_entry)
|
revaluation_entry = frappe.get_doc("Journal Entry", self.journal_entry)
|
||||||
if revaluation_entry.docstatus == 1:
|
if revaluation_entry.docstatus == 1:
|
||||||
|
# Ignore permissions to match Journal Entry submission behavior
|
||||||
|
revaluation_entry.flags.ignore_permissions = True
|
||||||
revaluation_entry.cancel()
|
revaluation_entry.cancel()
|
||||||
|
|
||||||
def update_asset(self):
|
def update_asset(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user