Reply to sender

This commit is contained in:
Jose Luis
2020-01-03 12:30:43 +01:00
parent d8381e8fd7
commit 8fce730435
10 changed files with 88 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
# -*- coding: utf-8 -*-
from . import models

View File

@@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
# This file is part of OpenERP. The COPYRIGHT file at the top level of
# this module contains the full copyright notices and license terms.
{
'name': 'Mail Reply To sender/reply to field(mail template)',
'version': '1.0',
'author': 'PPTS [India] Pvt.Ltd.',
'website': 'https://www.pptssolutions.com',
'license': 'LGPL-3',
'category': 'Mail',
'support': 'business@pptservices.com',
'summary': 'Mail Reply to the sender',
'description': """ This module provides a functionality to reply to sender's email address or the mail address given in 'Reply To' field of email template""",
'depends': [
'mail',
],
'data': [
],
'installable': True,
'application': False,
'images': ['static/description/banner.png'],
}

View File

@@ -0,0 +1,2 @@
# -*- coding: utf-8 -*-
from . import ir_mail_server

View File

@@ -0,0 +1,17 @@
# -*- coding: utf-8 -*-
from odoo import models,api
class MailComposer(models.TransientModel):
_inherit = 'mail.compose.message'
@api.multi
def get_mail_values(self, res_ids):
res = super(MailComposer, self).get_mail_values(res_ids)
if self.composition_mode == 'comment':
mail_reply_to = getattr(self, 'reply_to', None)
if mail_reply_to:
for f, x in res.items():
if 'reply_to' not in x:
x['reply_to'] = mail_reply_to
return res

Binary file not shown.

After

Width:  |  Height:  |  Size: 227 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

View File

@@ -0,0 +1,44 @@
<section class="oe_container">
<div class="oe_row oe_spaced">
<h2 class="oe_slogan" style="color:#875A7B;">Mail Reply to sender/reply to(Email template field)</h2>
<p class="oe_mt32 text-center">
This module provides a functionality to reply to sender's email address or the mail address given in 'Reply To' field of email template. This will replace default <b>catchall@domain.com</b>
</p>
</div>
</section>
<section class="oe_container">
<div class="oe_row oe_spaced">
<div class="oe_span12">
<h4 class="oe_mt32 oe_mb8 text-center">
<b>Step:</b>
</h4>
<p class="oe_mt32 text-center">
Go to the Email templates and add any email address(or use placeholder) in reply to field. If the sender address and reply to address are same reply will be sent to the sender.
If the sender address and reply to is different reply will be sent to reply to address.
</p>
<img class="oe_picture oe_screenshot" src="mail_reply_to_1.png">
<br/>
<img class="oe_picture oe_screenshot" src="mail_reply_to_2.png">
</div>
</div>
</section>
<section class="oe_container oe_dark">
<h2 class="oe_slogan" style="margin-top:20px;" >Need Any Help?</h2>
<div class="oe_slogan" style="margin-top:10px !important;">
<a class="btn btn-primary btn-lg mt8"
style="color: #FFFFFF !important;" href="mailto:business@pptservices.com"><i
class="fa fa-envelope"></i> Email </a> <a
class="btn btn-primary btn-lg mt8" style="color: #FFFFFF !important;"
href="http://www.pptssolutions.com/contact-us/"><i
class="fa fa-phone"></i> Contact Us </a>
</div>
<img src="icon.png" style="width: 70px; height:70px; margin-bottom: 20px;" class="center-block">
<h4 class="oe_mt32 oe_mb8 text-center">
<b>PPTS [India] Pvt.Ltd.</b>
</h4>
</section>
<section class="oe_container oe_separator">
</section>

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB