Skip to content
Snippets Groups Projects
Commit 946de52e authored by xO-Tx's avatar xO-Tx
Browse files

[FIX] website: correctly mark translatable attributes


Steps to reproduce:

- Go to a website page > Add a 'Form' block > Set an input "Placeholder"
value.
- Go to the page (in 'edit_translations' mode) > The translation of the
input "Placeholder" attribute doesn't mark the input as translated and
even after saving the translation, the input is still marked as
"to_translate".

The goal of this commit is to fix this issue by extending the same
behaviour on the translated `<select/>` options (using `.oe_translated`
class) and setting the right translation state on the input from the
linked attribute translation `<span/>`.

task-3323245

closes odoo/odoo#121843

X-original-commit: 9276afdc
Signed-off-by: default avatarBenoit Socias (bso) <bso@odoo.com>
Signed-off-by: default avatarOutagant Mehdi (mou) <mou@odoo.com>
parent e7fd2361
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment