commit | 5d41e3848d77b3e6eca9e5b87076b90327ce8dc9 | [log] [tgz] |
---|---|---|
author | Mangesh-Khairnar <mkhairnar10@gmail.com> | Tue Sep 17 12:45:14 2019 +0530 |
committer | Nabin Hait <nabinhait@gmail.com> | Tue Sep 17 12:45:14 2019 +0530 |
tree | fdb7963dc3e952939827ca622892555bd6490120 | |
parent | abd434f65682b8c07f1976571643d95a020cbb5f [diff] |
fix: do not submit depreciation journal entry when workflow is enabled (#19000)
diff --git a/erpnext/assets/doctype/asset/depreciation.py b/erpnext/assets/doctype/asset/depreciation.py index 61108ec..a9d3a48 100644 --- a/erpnext/assets/doctype/asset/depreciation.py +++ b/erpnext/assets/doctype/asset/depreciation.py
@@ -67,7 +67,9 @@ }) je.flags.ignore_permissions = True - je.submit() + je.save() + if not je.meta.get_workflow(): + je.submit() d.db_set("journal_entry", je.name)