Skip to content

[IMP] util.snippets: add FieldScope.WEBSITE#447

Closed
robinlej wants to merge 1 commit into
odoo:masterfrom
odoo-dev:master-fieldscope-role
Closed

[IMP] util.snippets: add FieldScope.WEBSITE#447
robinlej wants to merge 1 commit into
odoo:masterfrom
odoo-dev:master-fieldscope-role

Conversation

@robinlej

@robinlej robinlej commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

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.

@robodoo

robodoo commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Pull request status dashboard

@robinlej robinlej force-pushed the master-fieldscope-role branch 2 times, most recently from 9322fa4 to e77b2ed Compare June 10, 2026 09:49
@KangOl KangOl force-pushed the master-fieldscope-role branch from e77b2ed to b729083 Compare June 16, 2026 15:41
`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
@robinlej robinlej force-pushed the master-fieldscope-role branch from b729083 to 7ed0fa4 Compare June 22, 2026 15:08
@robinlej robinlej marked this pull request as ready for review June 22, 2026 15:08
@robinlej

Copy link
Copy Markdown
Contributor Author

Hi @KangOl , would it be ok to merge it?

@KangOl KangOl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants