Bug in Fixed Asset depreciation

I’m using frappe v12.0.20 and ERPNext 12.2.0
Setting-up fixed asset depreciation automatic posting to GL but found this error mesage on console :

Scheduler Asset Depreciation GL Posting error :
01:40:34 worker_short.1   | 01:40:34 NameError: name 'self' is not defined
01:40:34 worker_short.1   |   File "/home/frappe/frappe-bench/apps/erpnext/erpnext/assets/doctype/asset/asset.py", line 520, in make_post_gl_entry
01:40:34 worker_short.1   |     if not is_cwip_accounting_enabled(self.asset_category):
01:40:34 worker_short.1   | NameError: name 'self' is not defined
01:40:34 worker_short.1   | 01:40:34 Moving job to 'failed' queue 

Think got to do with the changes of moving cwip from asset setting to asset category

Welcome to ERPNext and thanks for reporting this - a fix is in progress fix: Post GL entry fix for asset by deepeshgarg007 · Pull Request #19751 · frappe/erpnext · GitHub

1 Like

Thanks for your warm welcome and bug fix information Clarke.
Should’ve check github first before posting an error