Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for record in records:
- if record.model == "project.task": #Only in project tasks.
- if record.subtype_id.name == "Discussions": #Discussions is the Message Subtype for messages.
- raise Warning('You are about to send an email, use Log Note instead of Send Message!\n\nThanks!')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement