mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
Reply to sender
This commit is contained in:
3
mail_reply_to_sender/__init__.py
Normal file
3
mail_reply_to_sender/__init__.py
Normal file
@@ -0,0 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from . import models
|
||||
22
mail_reply_to_sender/__manifest__.py
Normal file
22
mail_reply_to_sender/__manifest__.py
Normal 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'],
|
||||
}
|
||||
2
mail_reply_to_sender/models/__init__.py
Normal file
2
mail_reply_to_sender/models/__init__.py
Normal file
@@ -0,0 +1,2 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from . import ir_mail_server
|
||||
17
mail_reply_to_sender/models/ir_mail_server.py
Normal file
17
mail_reply_to_sender/models/ir_mail_server.py
Normal 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
|
||||
BIN
mail_reply_to_sender/static/description/banner.png
Normal file
BIN
mail_reply_to_sender/static/description/banner.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 227 KiB |
BIN
mail_reply_to_sender/static/description/icon.png
Executable file
BIN
mail_reply_to_sender/static/description/icon.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 45 KiB |
44
mail_reply_to_sender/static/description/index.html
Normal file
44
mail_reply_to_sender/static/description/index.html
Normal 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>
|
||||
BIN
mail_reply_to_sender/static/description/mail_reply_to_1.png
Normal file
BIN
mail_reply_to_sender/static/description/mail_reply_to_1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 79 KiB |
BIN
mail_reply_to_sender/static/description/mail_reply_to_2.png
Normal file
BIN
mail_reply_to_sender/static/description/mail_reply_to_2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 83 KiB |
BIN
mail_reply_to_sender/static/description/reply_to.png
Normal file
BIN
mail_reply_to_sender/static/description/reply_to.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 27 KiB |
Reference in New Issue
Block a user