Skip to content

[19.0][FIX] base_comment_template: comment_template_ids domain#1167

Open
Qlasta wants to merge 1 commit into
OCA:19.0from
versada:19.0-fix-base_comment_template-domain
Open

[19.0][FIX] base_comment_template: comment_template_ids domain#1167
Qlasta wants to merge 1 commit into
OCA:19.0from
versada:19.0-fix-base_comment_template-domain

Conversation

@Qlasta
Copy link
Copy Markdown

@Qlasta Qlasta commented Jun 3, 2026

The field filtered candidates by comparing the computed, non-stored relational field against a model name string:

domain=lambda self: [(model_ids, in, self._name)]

The 19.0 domain engine (odoo.fields.Domain) rewrites a relational-vs- scalar leaf into the operator with a sub-domain on the comodel:

(model_ids, any, [(display_name, in, [account.asset])])

Build the domain from _search_model_ids instead.

The field filtered candidates by comparing the computed, non-stored
relational field  against a model name string:

    domain=lambda self: [(model_ids, in, self._name)]

The 19.0 domain engine () rewrites a relational-vs-
scalar leaf into the  operator with a sub-domain on the comodel:

    (model_ids, any, [(display_name, in, [account.asset])])

Build the domain from  instead.
@OCA-git-bot OCA-git-bot added series:19.0 mod:base_comment_template Module base_comment_template labels Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:base_comment_template Module base_comment_template series:19.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants