social/mail_show_follower/models/res_company.py
Eduardo De Miguel 59966f0f5d [ADD] Customize notification appearance
Added settings to customize notification and translations to important parts of the message.

[FIX] Security fixes and simplified customization

Field `show_followers_partner_format` formatted with %(param)s
Removed CSS customizations

[FIX] README options

[FIX] Index.html configure

[FIX] Several changes

- Removed unnecesary properties on res_config_settings
- Markup safe on partner_format
- Use email_domain_extract instead own one
2022-03-22 14:55:05 +01:00

29 lines
886 B
Python

from odoo import fields, models
class ResCompany(models.Model):
_inherit = "res.company"
show_internal_users_cc = fields.Boolean(
string="Show Internal Users CC",
default=True,
)
show_followers_message_sent_to = fields.Html(
string="Text 'Sent to'",
translate=True,
default="This message has been sent to",
)
show_followers_partner_format = fields.Char(
string="Partner format",
default="%(partner_name)s",
help="Supported parameters:\n"
"%(partner_name)s = Partner Name\n"
"%(partner_email)s = Partner Email\n"
"%(partner_email_domain)s = Partner Email Domain",
)
show_followers_message_response_warning = fields.Html(
string="Text 'Replies'",
translate=True,
default="Notice: Replies to this email will be sent to all recipients",
)