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

[18.0][MIG] mail_debrand: Migration to 18.0 #1539

Open
wants to merge 55 commits into
base: 18.0
Choose a base branch
from

Conversation

ellbristow
Copy link

@ellbristow ellbristow commented Jan 9, 2025

Migrate mail_debrand to 18.0

Code unchaged other than updating _() to self.env._()

Installs in dev build, all unit tests pass

@ellbristow ellbristow force-pushed the 18.0-mig-mail_debrand branch from 3e16cb9 to faadecc Compare January 9, 2025 11:43
pedrobaeza and others added 29 commits January 9, 2025 12:52
There's no commits preservation, as the module doesn't serve as is on v9.
without this fix, any regular notification (added as follower,
thread notifications...) were not parsed at all and as a
consequence also not debranded.
Currently translated at 20.0% (1 of 5 strings)

Translation: social-14.0/social-14.0-mail_debrand
Translate-URL: https://translation.odoo-community.org/projects/social-14-0/social-14-0-mail_debrand/nl/
ryanc-me and others added 26 commits January 9, 2025 12:52
…ll change in future versions. Use specific 'len(elem)' or 'elem is not None' test instead.
- FIX bug when split email message by `to_keep` parameter. When the html code is split, it is broken. As a result of this, when it use `fromstring`,
it try to fix this by closing tags.
Example about fixed functionality:

message:
`
<table>
   <tr>
      <td>
         {to_keep}
      </td>
   </tr>
</table>
`
Split messsage inside `remove_href_odoo` function:

part[0]

`
<table>
   <tr>
      <td>
`
--------
part[1]
`
      </td>
   </tr>
</table>
`
-----------------
Result when join by `to_keep`

`
<table>
<tr>
<td>
{to_keep}
</td>
</tr>
</table>
`
update function calls to use new internal names, use qweb_view engine to be able to specify the template via xmlid
Currently translated at 100.0% (3 of 3 strings)

Translation: social-16.0/social-16.0-mail_debrand
Translate-URL: https://translation.odoo-community.org/projects/social-16-0/social-16-0-mail_debrand/es/
…l templates

such as auth_signup's invitation email.
…ing was

when using mail.mail_notification_light as a wrapper
Currently translated at 100.0% (3 of 3 strings)

Translation: social-16.0/social-16.0-mail_debrand
Translate-URL: https://translation.odoo-community.org/projects/social-16-0/social-16-0-mail_debrand/fr/
Currently translated at 100.0% (3 of 3 strings)

Translation: social-17.0/social-17.0-mail_debrand
Translate-URL: https://translation.odoo-community.org/projects/social-17-0/social-17-0-mail_debrand/it/
@ellbristow ellbristow force-pushed the 18.0-mig-mail_debrand branch from faadecc to bdcfc86 Compare January 9, 2025 11:52
@ellbristow ellbristow marked this pull request as ready for review January 9, 2025 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.