fix: cancelling of asset value adjustement (#24193)

This commit is contained in:
Saqib 2020-12-26 13:01:49 +05:30 committed by GitHub
parent 9f1e1f6c23
commit 60a1d25196
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,9 +21,6 @@ class AssetValueAdjustment(Document):
self.reschedule_depreciations(self.new_asset_value)
def on_cancel(self):
if self.journal_entry:
frappe.throw(_("Cancel the journal entry {0} first").format(self.journal_entry))
self.reschedule_depreciations(self.current_asset_value)
def validate_date(self):