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

[IMP]mass_mailling:Disabaling the creation of mail if no email found. #15016

Closed

Conversation

mep-odoo
Copy link

Description of the issue/feature this PR addresses:
Task : https://www.odoo.com/web#id=30428&view_type=form&model=project.task&action=333&active_id=131&menu_id=4720

Pad : https://pad.odoo.com/p/r.049d4059ff5ef3363ca2b82905299864

Current behavior before PR:

Desired behavior after PR is merged:

--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

@mep-odoo mep-odoo force-pushed the master-mass-mailing-email-improvement-mep branch from c81db6c to 2d52a31 Compare January 11, 2017 06:06
@C3POdoo C3POdoo added the RD research & development, internal work label Jan 11, 2017
@tde-banana-odoo tde-banana-odoo force-pushed the master-mass-mailing-email-improvement-mep branch from 2d52a31 to cc8af5b Compare April 24, 2017 09:53
@@ -66,4 +66,12 @@ def get_mail_values(self, res_ids):
'notification': mass_mailing.reply_to_mode == 'thread',
'auto_delete': not mass_mailing.keep_archives,
})
if not (res[res_id].get('email_to') or res[res_id].get('recipient_ids')):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should instead put the mail in state cancel like done before for blacklist and stuff like that. Avoid modifying res, and put correct values in it instead.

… state of mail to cancel for those who has not email to or not recipient ids
@tde-banana-odoo tde-banana-odoo deleted the master-mass-mailing-email-improvement-mep branch September 6, 2017 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RD research & development, internal work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants