[15.0][MIG] web_form_banner: Migration to 15.0#3287
Conversation
1e78c6b to
eca678a
Compare
eca678a to
12c8d30
Compare
f7a2d00 to
2ddbd7e
Compare
2ddbd7e to
8f636ba
Compare
28f0455 to
5e9cbdf
Compare
|
@AungKoKoLin1997 Please confirm my commits and sort out the commit history. I think my changes can be squashed into the migration commit but comment the changed points. |
|
@AungKoKoLin1997 Can you also please switch the archive box icon to the banner?
|
d3c42d1 to
c58a869
Compare
yostashiro
left a comment
There was a problem hiding this comment.
Code review and functional test.
c58a869 to
08d20a8
Compare
135d9ee to
854e4d0
Compare
a9e5a0c to
ff22e4a
Compare
yostashiro
left a comment
There was a problem hiding this comment.
@AungKoKoLin1997 Please go ahead and squash commits.
ff22e4a to
9264f62
Compare
|
@AungKoKoLin1997 Just noticed an issue with banner presentation. Can you please follow up on this?
|
9264f62 to
c5f828e
Compare
@yostashiro Fixed it and explain the changes in the migration commit message as well. |
|
@yostashiro I added some changes that are to make consistent with odoo 16 changes. |
Refactor JS: - Switch to the ESM style - Change var to const/let - Remove unused parts (diff, el.dataset.wfbTriggerFields) Miscellaneous improvements: - list view optional - Switch archive box icon to banner Fix _render_html for Odoo 15: - In Odoo 12, html_escape returned a plain string, so replacing newlines with <br/> worked as expected. - In Odoo 15, html_escape uses markupsafe.escape, which escapes inserted <br/> tags resulting in <br/> in the output. - Updated _render_html to escape each line individually and join with literal <br/> tags to match Odoo 12 behavior while remaining safe for HTML rendering. Co-authored-by: Yoshi Tashiro <tashiro@quartile.co>
9ba2e96 to
f743d4f
Compare
- Add (partial) support for elements inside groups to be a target XPath without distorting the presentation - Remove obsolete bits - Remove lru_cache decorator Co-authored-by: Yoshi Tashiro <tashiro@quartile.co>
f743d4f to
deeaf64
Compare
nobuQuartile
left a comment
There was a problem hiding this comment.
LGTM
Functional review


Based on #3286
The module adds configurable banners for backend form views. Define rules per model
(and optionally per view) to show context-aware alerts with a chosen severity (info/warning/danger).
Messages can be plain text with ${placeholders} or fully custom HTML; visibility,
severity, and values are computed server-side via a safe Python expression.
Banners are injected just before or after a target node (default: //sheet) and refresh
on form load/save/reload.
@qrtl QT5747