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

[17.0] mail_debrand - Button to view the quotation broken in debranded mail #1375

Open
MSokol00 opened this issue May 28, 2024 · 3 comments
Open
Labels

Comments

@MSokol00
Copy link

Module

mail_debrand

Describe the bug

When the module is installed, it correctly removes 'Powered by Odoo' from email, but the button to open the link is cleared out as well.
image

To Reproduce

Affected versions: 17.0

Steps to reproduce the behavior:

  1. Install module
  2. Send email with quotation.

Expected behavior
The button at the top of the email should work and direct user to quotation
image

Additional context

@MSokol00 MSokol00 added the bug label May 28, 2024
@Bart-dh
Copy link

Bart-dh commented Jun 13, 2024

Hi @MSokol00

Does your database url contain odoo.com? I feel like the way this module is implemented, this breaks a lot of this. It is way too harsh. It also completely breaks the Digest email which obviously contains Odoo branding.

@MSokol00
Copy link
Author

Hi @Bart-dh,

yes, that's correct. My organization is hosting a projects on odoo.sh with odoo.com domains for a couple of customers. This module basically gets rid of every html tag with '*.odoo.com' link inside, which is not the best idea.

@JochenVanSeveren
Copy link

Oh wow I just came to make an issue about mail_debrand because I faced the same issue on all of my outgoing emails.

⚠️ This really should be put in a big banner on the module itself ⚠️

has_odoo_link = re.search(r"<a\s(.*)odoo\.com", value, flags=re.IGNORECASE)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants