[IMP] util.snippets: add FieldScope.WEBSITE#447
Closed
robinlej wants to merge 1 commit into
Closed
Conversation
Contributor
9322fa4 to
e77b2ed
Compare
e77b2ed to
b729083
Compare
`FieldScope` (introduced with [1]) only gave the option to target all fields (`FieldScope.ALL`), or those depending on `html_builder` (`FieldScope.SNIPPETS`). This is not sufficient when we want to target website without targeting mass_mailing, which is why this commit adds a `FieldScope.WEBSITE`. [1]: odoo@f455c09
b729083 to
7ed0fa4
Compare
Contributor
Author
|
Hi @KangOl , would it be ok to merge it? |
KangOl
approved these changes
Jun 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


FieldScope(introduced with 1) only gave the option to target allfields (
FieldScope.ALL), or those depending onhtml_builder(
FieldScope.SNIPPETS).This is not sufficient when we want to target website without targeting
mass_mailing, which is why this commit adds a
FieldScope.WEBSITE.