Error using Customize Form

Hi,

I am on self-hosted, ERPNext: v7.1.19, Frappe Framework: v7.1.19. I have not done any customization yet.

In Customize Form, on selecting any Form Type in dropdown, receiving the below error:

Error: Document has been modified after you have opened it ((), None). Please refresh to get the latest document.

Complete trace from the browser console:

desk.min.js:151 Traceback (most recent call last):
File “/home/shubham/frappe-bench/apps/frappe/frappe/app.py”, line 55, in application
response = frappe.handler.handle()
File “/home/shubham/frappe-bench/apps/frappe/frappe/handler.py”, line 19, in handle
execute_cmd(cmd)
File “/home/shubham/frappe-bench/apps/frappe/frappe/handler.py”, line 36, in execute_cmd
ret = frappe.call(method, **frappe.form_dict)
File “/home/shubham/frappe-bench/apps/frappe/frappe/init.py”, line 887, in call
return fn(*args, **newargs)
File “/home/shubham/frappe-bench/apps/frappe/frappe/handler.py”, line 67, in runserverobj
frappe.desk.form.run_method.runserverobj(method, docs=docs, dt=dt, dn=dn, arg=arg, args=args)
File “/home/shubham/frappe-bench/apps/frappe/frappe/desk/form/run_method.py”, line 22, in runserverobj
doc.check_if_latest()
File “/home/shubham/frappe-bench/apps/frappe/frappe/model/document.py”, line 506, in check_if_latest
raise_exception=frappe.TimestampMismatchError)
File “/home/shubham/frappe-bench/apps/frappe/frappe/init.py”, line 293, in msgprint
_raise_exception()
File “/home/shubham/frappe-bench/apps/frappe/frappe/init.py”, line 266, in _raise_exception
raise raise_exception, encode(msg)
TimestampMismatchError: Error: Document has been modified after you have opened it ((), None). Please refresh to get the latest document.

Am I the only one experiencing this? Can somebody else confirm if there installation is working fine on similar version?

@shubhamgupta123,

checked the issue and sent the PR, please check https://github.com/frappe/frappe/pull/2377.

Thanks, Makarand

Thanks @makarand_b for the quick help!!

I can confirm that your PR fixes this issue. This thread can be closed.