Mail Debrand
by Tecnativa https://github.com/OCA/social , ForgeFlow https://github.com/OCA/social , Onestein https://github.com/OCA/social , Sodexis https://github.com/OCA/social , Nexterp Romania https://github.com/OCA/social , Odoo Community Association (OCA) https://github.com/OCA/socialAvailability |
Odoo Online
Odoo.sh
On Premise
|
Odoo Apps Dependencies |
Discuss (mail)
|
Lines of code | 40 |
Technical Name |
mail_debrand |
License | AGPL-3 |
Website | https://github.com/OCA/social |
Versions | 8.0 10.0 11.0 14.0 15.0 16.0 9.0 12.0 13.0 |
Mail Debrand
This module modifies the functionality of emails to remove the Odoo branding, specifically the ‘using Odoo’ of notifications or the ‘Powered by Odoo’
Table of contents
Usage
To use this module, you need to:
- Install it.
- Send an email.
- Nobody will know it comes from Odoo.
Changelog
12.0.1.0.0 (2018-11-06)
- [NEW] Initial V12 version. Complete rewrite from v11.
Bug Tracker
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.
Do not contact contributors directly about support or help with technical issues.
Credits
Authors
- Tecnativa
- Eficent
Contributors
- Pedro M. Baeza <pedro.baeza@tecnativa.com>
- Lois Rilo <lois.rilo@eficent.com>
- Graeme Gellatly <graeme@o4sb.com>
Maintainers
This module is maintained by the OCA.
OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.
Current maintainer:
This module is part of the OCA/social project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Please log in to comment on this module
Report comment
Any abuse of this reporting system will be penalizedThere are no ratings yet!
TypeError: argument of type 'NoneType' is not iterable
Odoo Server Error Traceback (most recent call last): File "/usr/lib/python3/dist-packages/odoo/http.py", line 656, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/usr/lib/python3/dist-packages/odoo/http.py", line 314, in _handle_exception raise pycompat.reraise(type(exception), exception, sys.exc_info()[2]) File "/usr/lib/python3/dist-packages/odoo/tools/pycompat.py", line 87, in reraise raise value File "/usr/lib/python3/dist-packages/odoo/http.py", line 698, in dispatch result = self._call_function(**self.params) File "/usr/lib/python3/dist-packages/odoo/http.py", line 346, in _call_function return checked_call(self.db, *args, **kwargs) File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 97, in wrapper return f(dbname, *args, **kwargs) File "/usr/lib/python3/dist-packages/odoo/http.py", line 339, in checked_call result = self.endpoint(*a, **kw) File "/usr/lib/python3/dist-packages/odoo/http.py", line 941, in __call__ return self.method(*args, **kw) File "/usr/lib/python3/dist-packages/odoo/http.py", line 519, in response_wrap response = f(*args, **kw) File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 966, in call_button action = self._call_kw(model, method, args, {}) File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 954, in _call_kw return call_kw(request.env[model], method, args, kwargs) File "/usr/lib/python3/dist-packages/odoo/api.py", line 759, in call_kw return _call_kw_multi(method, model, args, kwargs) File "/usr/lib/python3/dist-packages/odoo/api.py", line 746, in _call_kw_multi result = method(recs, *args, **kwargs) File "/usr/lib/python3/dist-packages/odoo/addons/portal/wizard/portal_wizard.py", line 59, in action_apply self.user_ids.action_apply() File "/usr/lib/python3/dist-packages/odoo/addons/portal/wizard/portal_wizard.py", line 146, in action_apply wizard_user.with_context(active_test=True)._send_email() File "/usr/lib/python3/dist-packages/odoo/addons/portal/wizard/portal_wizard.py", line 187, in _send_email template.with_context(dbname=self._cr.dbname, portal_url=portal_url, lang=lang).send_mail(wizard_line.id, force_send=True) File "/usr/lib/python3/dist-packages/odoo/addons/mail/models/mail_template.py", line 518, in send_mail values = self.generate_email(res_id) File "/usr/lib/python3/dist-packages/odoo/addons/mail/models/mail_template.py", line 447, in generate_email post_process=(field == 'body_html')) File "/usr/lib/python3/dist-packages/odoo/addons/mail/models/mail_template.py", line 345, in _render_template results[res_id] = self.render_post_process(result) File "/addons/mail_debrand/models/mail_template.py", line 41, in render_post_process html = super().render_post_process(html) File "/usr/lib/python3/dist-packages/odoo/addons/mail/models/mail_template.py", line 288, in render_post_process html = self.env['mail.thread']._replace_local_links(html) File "/addons/mail_debrand/models/mail_thread.py", line 13, in _replace_local_links html_debranded = self.env["mail.template"]._debrand_body(html) File "/addons/mail_debrand/models/mail_template.py", line 31, in _debrand_body for child in elem.getchildren() File "/addons/mail_debrand/models/mail_template.py", line 31, in for child in elem.getchildren() TypeError: argument of type 'NoneType' is not iterable
great plugin
works like a charm