mirror of
https://github.com/frappe/frappe.git
synced 2024-06-13 06:42:21 +00:00
33 lines
773 B
JavaScript
33 lines
773 B
JavaScript
frappe.listview_settings["Communication"] = {
|
|
add_fields: [
|
|
"sent_or_received",
|
|
"recipients",
|
|
"subject",
|
|
"communication_medium",
|
|
"communication_type",
|
|
"sender",
|
|
"seen",
|
|
"reference_doctype",
|
|
"reference_name",
|
|
"has_attachment",
|
|
"communication_date",
|
|
],
|
|
|
|
filters: [["status", "=", "Open"]],
|
|
|
|
onload: function (list_view) {
|
|
let method = "frappe.email.inbox.create_email_flag_queue";
|
|
|
|
list_view.page.add_menu_item(__("Mark as Read"), function () {
|
|
list_view.call_for_selected_items(method, { action: "Read" });
|
|
});
|
|
list_view.page.add_menu_item(__("Mark as Unread"), function () {
|
|
list_view.call_for_selected_items(method, { action: "Unread" });
|
|
});
|
|
},
|
|
|
|
primary_action: function () {
|
|
new frappe.views.CommunicationComposer();
|
|
},
|
|
};
|