Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: better way to do WhatsApp Notification with Notification Type "… #107

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

HarryPaulo
Copy link
Contributor

This change aims to improve the way of creating events to trigger WhatsApp notifications.

  1. Created a way to set a field on relative doctype on send a whatsapp message, for this was created a section called "Set Property After Alert"

  2. Allow created more then one WhatsApp Notification with Notification Type "Event Schedule" for the same "Event Frequency" but with diferente propouse

Event method was ajusted to look for a list of events...

  1. method "send_scheduled_message" was refactored to allow send template using for a Event Schedule

  2. Every message sended try to add doc references "reference_doctype" and "reference_name" and create a whatsapp message

  3. Refactored the creationg of "Scheduled Job Type" on insert or delete a "WhatsApp Notification"

  4. Better text formating for fields parameters using "doc.get_formatted(field.field_name)"

@HarryPaulo
Copy link
Contributor Author

HarryPaulo commented Nov 13, 2024

On this image we have a sample of event notify.

1 - Only send the message on 16h
2 - Look opportunities applying a custom filter and get the custom data object to send all whatsapp notification
3 - Use the phone number based on field: contact_mobile

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant