odoo/upgrade#7648

Created by Framework (ORM), Chong Wang (cwg)

Blocked

label
odoo-dev:master-core-decouple-sanitize-translate-cwg
head
93f7abbfafb129117972ff113f701492c7a5373b
odoo/odoo odoo/enterprise odoo/upgrade odoo/documentation
master #208745 missing statuses missing r+ #84857 missing statuses missing r+ #7648 missing r+ #13231 missing r+

[IMP] base/saas-18.4: decouple sanitize translate

Before 18.4

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

will be automatically converted to

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

Since 18.4

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

This commit adds a check for non-odoo-official, non-manual sanitized translated html fields and asks administrators to recheck their codes after upgrade.

odoo#208745
enterprise#84857

> Warning Please follow and check the relevant boxes for your PR, otherwise the review may take longer.

For a PR that adds a new upgrade script (for the Odoo's master branch or one of the RR versions):
- [ ] I've added the references to the Enterprise and/or Community PRs in the commit message, even if they are already merged.
- [ ] I've added an overall description of the changes made in the Community/Enterprise branches.

For a PR that fixes an issue on an already existing upgrade script:
- [ ] I've added a clear description of the issue including information on how to reproduce it.
- [ ] I've tested the fix and included references of upgrade requests where this fix will be applicable in the form of upg-<request_number>.
- [ ] I've included references to the OPW, if applicable, in the form of opw-<ticket_number>.
- [ ] I've tested this fix on other DBs, not just the ones with the issue.

For all PRs:
- [ ] My commit's title follows the right format.
- [ ] My commit's body includes information about the changes.
- [ ] I've added odoo/upgrade as a reviewer.
- [ ] I've read and understood this list.
- [x] I will ensure all the CI checks are green.

> Note More info can be found in the wiki.