diff --git a/custom_ui/fixtures/email_account.json b/custom_ui/fixtures/email_account.json new file mode 100644 index 0000000..363f48a --- /dev/null +++ b/custom_ui/fixtures/email_account.json @@ -0,0 +1,72 @@ +[ + { + "add_signature": 0, + "always_bcc": null, + "always_use_account_email_id_as_sender": 1, + "always_use_account_name_as_sender_name": 0, + "append_emails_to_sent_folder": 0, + "append_to": null, + "ascii_encode_password": 0, + "attachment_limit": 25, + "auth_method": "Basic", + "auto_reply_message": null, + "awaiting_password": 0, + "backend_app_flow": 0, + "brand_logo": null, + "company": null, + "connected_app": null, + "connected_user": null, + "create_contact": 1, + "default_incoming": 0, + "default_outgoing": 1, + "docstatus": 0, + "doctype": "Email Account", + "domain": null, + "email_account_name": "SendGrid", + "email_id": "admin@sprinklersnorthwest.com", + "email_server": null, + "email_sync_option": "UNSEEN", + "enable_auto_reply": 0, + "enable_automatic_linking": 0, + "enable_incoming": 0, + "enable_outgoing": 1, + "footer": null, + "imap_folder": [ + { + "append_to": null, + "folder_name": "INBOX", + "parent": "SendGrid", + "parentfield": "imap_folder", + "parenttype": "Email Account", + "uidnext": null, + "uidvalidity": null + } + ], + "incoming_port": null, + "initial_sync_count": "250", + "login_id": "apikey", + "login_id_is_different": 1, + "modified": "2025-07-24 05:56:06.313369", + "name": "SendGrid", + "no_failed": 0, + "no_smtp_authentication": 0, + "notify_if_unreplied": 0, + "password": "*********************************************************************", + "send_notification_to": null, + "send_unsubscribe_message": 1, + "sent_folder_name": null, + "service": "Sendgrid", + "signature": null, + "smtp_port": "2525", + "smtp_server": "smtp.sendgrid.net", + "track_email_status": 1, + "uidnext": 0, + "uidvalidity": null, + "unreplied_for_mins": 30, + "use_imap": 0, + "use_ssl": 0, + "use_ssl_for_outgoing": 0, + "use_starttls": 0, + "use_tls": 0 + } +] \ No newline at end of file diff --git a/custom_ui/hooks.py b/custom_ui/hooks.py index a9f2818..c3e4bab 100644 --- a/custom_ui/hooks.py +++ b/custom_ui/hooks.py @@ -225,6 +225,12 @@ fixtures = [ ["name", "in", ["Customer Invoice"]] ] }, + { + "dt": "Email Account", + "filters": [ + ["name", "in", ["SendGrid"]] + ] + }, { "dt": "Task", "filters": [["status", "=", "Template"]]