When i do bulk actions, this type popup showing in every browser tab which i have using (means opened tabs), not just this popup every popup showing, when i go to other tab first i need remove all popups then i will do my work
is there setting disable it ?
NCP
August 16, 2024, 4:51am
2
That for, you have to use frappe.show_alert
instead of the frappe.msgprint
And you can easily override it in your custom app using the override_whitelisted_method
@frappe.whitelist()
def delete_items():
"""delete selected items"""
import json
items = sorted(json.loads(frappe.form_dict.get("items")), reverse=True)
doctype = frappe.form_dict.get("doctype")
if len(items) > 10:
frappe.enqueue("frappe.desk.reportview.delete_bulk", doctype=doctype, items=items)
else:
delete_bulk(doctype, items)
def delete_bulk(doctype, items):
undeleted_items = []
for i, d in enumerate(items):
try:
frappe.delete_doc(doctype, d)
if len(items) >= 5:
This file has been truncated. show original
Means its a bug or requirement ?
NCP
August 16, 2024, 5:55am
4
It’s not a bug! but you can changed the functionality, if you want!