Skip to content

[IMP] core: decouple sanitize and translate for html fields #13231

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

HydrionBurst
Copy link
Contributor

@robodoo
Copy link
Collaborator

robodoo commented May 7, 2025

Pull request status dashboard

@HydrionBurst HydrionBurst force-pushed the master-core-decouple-sanitize-translate-cwg branch from 5873888 to 5112ff9 Compare May 7, 2025 09:42
HydrionBurst added a commit to odoo-dev/odoo that referenced this pull request May 7, 2025
Before this commit:

``Fields.Html(translate=True, sanitize=True)``

will be automatically converted to

``Fields.Html(translate=html_translate, sanitize=True)``

After this commit:

Developers always have to explicitly set the ``translate`` attribute to ``True``
or ``html_translate``

As an expected side effect, all manual sanitized translated html fields will be
converted from ``translate=html_translate`` to ``translate=True``

odoo/documentation#13231
odoo/upgrade#7648
@HydrionBurst HydrionBurst force-pushed the master-core-decouple-sanitize-translate-cwg branch from 5112ff9 to 521676a Compare May 7, 2025 10:30
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.

2 participants