Skip to content

[19.0][FIX] project_task_description_template: HTML fields wrap text in <p>#1738

Closed
dnplkndll wants to merge 1 commit into
OCA:19.0from
ledoent:19.0-fix-description_template-html-wrapping
Closed

[19.0][FIX] project_task_description_template: HTML fields wrap text in <p>#1738
dnplkndll wants to merge 1 commit into
OCA:19.0from
ledoent:19.0-fix-description_template-html-wrapping

Conversation

@dnplkndll
Copy link
Copy Markdown

TestDescriptionTemplate fails on 19.0: the two assertions expect the template
text wrapped in <span>, but Odoo 19.0's Html field now wraps bare text in
<p>. So _onchange_description_template_id produces <p>- Sample Description</p>.

The module behaviour is correct — only the test's hard-coded expectations were
stale. This updates them to <p>, turning the module's tests green again on the
19.0 branch.

…apping

Odoo 19.0 Html fields wrap bare text in <p> rather than <span>, so the
onchange that appends a template's description now yields <p>…</p>. Update
the two test expectations accordingly; the module behaviour is unchanged.
@OCA-git-bot OCA-git-bot added series:19.0 mod:project_task_description_template Module project_task_description_template labels May 28, 2026
@dnplkndll
Copy link
Copy Markdown
Author

@NICO-SOLUTIONS @alan196 @Shide

just looking to get the CI running. will investigate more if there is a better option.

@dnplkndll dnplkndll closed this May 28, 2026
@dnplkndll dnplkndll deleted the 19.0-fix-description_template-html-wrapping branch May 28, 2026 23:19
@dnplkndll
Copy link
Copy Markdown
Author

#1739

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

Labels

mod:project_task_description_template Module project_task_description_template series:19.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants