Refer https://github.com/frappe/frappe/pull/40237 https://github.com/frappe/frappe/pull/40237/changes/435eb52016b283c4975e3da0ddf0cfceef7a4df3
Refer frappe/frappe#40237
frappe/frappe@435eb52