When navigating to Accounting > Account > [some account) and selecting from the Actions pull down Update Account Name / Number I get a dialog that allows modification of the name and entry of an account number. On entering changes to the account name or an account number, I get the Server Error message below.
This is on a relatively fresh install without sample data using frappe_docker from
commit 2ee921f (HEAD -> main, origin/main, origin/HEAD)
Author: github-actions <github-actions@github.com>
Date: Wed Mar 5 13:37:46 2025 +0000
App Versions
{
"erpnext": "15.54.0",
"frappe": "15.57.1"
}
Route
Form/Account/Electronic Equipments - P
Traceback
Traceback (most recent call last):
File "apps/frappe/frappe/app.py", line 115, in application
response = frappe.api.handle(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "apps/frappe/frappe/api/__init__.py", line 49, in handle
data = endpoint(**arguments)
^^^^^^^^^^^^^^^^^^^^^
File "apps/frappe/frappe/api/v1.py", line 36, in handle_rpc_call
return frappe.handler.handle()
^^^^^^^^^^^^^^^^^^^^^^^
File "apps/frappe/frappe/handler.py", line 51, in handle
data = execute_cmd(cmd)
^^^^^^^^^^^^^^^^
File "apps/frappe/frappe/handler.py", line 87, in execute_cmd
return frappe.call(method, **frappe.form_dict)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "apps/frappe/frappe/__init__.py", line 1734, in call
return fn(*args, **newargs)
^^^^^^^^^^^^^^^^^^^^
File "apps/frappe/frappe/utils/typing_validations.py", line 31, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "apps/erpnext/erpnext/accounts/doctype/account/account.py", line 484, in update_account_number
_ensure_idle_system()
File "apps/erpnext/erpnext/accounts/doctype/account/account.py", line 617, in _ensure_idle_system
if last_gl_update > add_to_date(None, minutes=-5):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: '>' not supported between instances of 'NoneType' and 'datetime.datetime'
Request Data
{
"type": "POST",
"args": {
"account_name": "Electronic Equipments X",
"name": "Electronic Equipments - P"
},
"headers": {},
"error_handlers": {},
"url": "/api/method/erpnext.accounts.doctype.account.account.update_account_number",
"request_id": null
}
Response Data
{
"exception": "TypeError: '>' not supported between instances of 'NoneType' and 'datetime.datetime'",
"exc_type": "TypeError",
"_exc_source": "erpnext (app)"
}