Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename Accounts in accounts chart #46411

Closed
fullstackdevsalmoh opened this issue Mar 9, 2025 · 3 comments
Closed

Rename Accounts in accounts chart #46411

fullstackdevsalmoh opened this issue Mar 9, 2025 · 3 comments
Assignees
Labels

Comments

@fullstackdevsalmoh
Copy link

fullstackdevsalmoh commented Mar 9, 2025

Information about bug

I have installed the system 3 times with latest update at mean time, as follow:
ERPNext: v15.54.3 (version-15)
Frappe Framework: v15.57.2 (version-15)
Frappe HR: v15.41.0 (version-15)
Frappe Lending: v0.0.1 (version-15)
Payments: v0.0.1 (version-15)

When I try to rename an account in accounts chart a popup error message says:

TypeError: '>' not supported between instances of 'NoneType' and 'datetime.datetime'
Possible source of error: erpnext (app)

Module

accounts

Version

ERPNext: v15.54.3 (version-15)
Frappe Framework: v15.57.2 (version-15)
Frappe HR: v15.41.0 (version-15)
Frappe Lending: v0.0.1 (version-15)
Payments: v0.0.1 (version-15)

Installation method

manual install

Relevant log output / Stack trace / Full Error Message.

### App Versions

{
	"erpnext": "15.54.3",
	"frappe": "15.57.2",
	"hrms": "15.41.0",
	"lending": "0.0.1",
	"payments": "0.0.1"
}

### Route

Form/Account/Bank Account - M

### 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": "Bank Accountd",
		"name": "Bank Account - M"
	},
	"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)"
}
@DipenFrappe
Copy link
Collaborator

@ljain112

@Yasmine044
Copy link

Hi, I encountered the same issue even though my versions are slightly different.

Here are my installed versions:

Image

{
"frappe": {
"version": "15.58.1"
},
"erpnext": {
"version": "15.54.3",
"commit_hash": "47429095a2bc48dc66e5fe091f804ca0dd78010c",
"branch": "version-15"
}
}
The error message is the same:
TypeError: '>' not supported between instances of 'NoneType' and 'datetime.datetime'

L

@ljain112
Copy link
Collaborator

The issue is already fixed in the v15.54.4.
#46464

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants
@ruthra-kumar @fullstackdevsalmoh @ljain112 @Yasmine044 @DipenFrappe and others