web icon indicating copy to clipboard operation
web copied to clipboard

[15.0][MIG] web_form_banner: Migration to 15.0

Open AungKoKoLin1997 opened this issue 3 months ago • 5 comments

Based on https://github.com/OCA/web/pull/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

AungKoKoLin1997 avatar Sep 16 '25 10:09 AungKoKoLin1997

@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.

yostashiro avatar Sep 23 '25 10:09 yostashiro

@AungKoKoLin1997 Can you also please switch the archive box icon to the banner?

image

yostashiro avatar Sep 23 '25 10:09 yostashiro

@AungKoKoLin1997 Just noticed an issue with banner presentation. Can you please follow up on this?

image

yostashiro avatar Sep 30 '25 01:09 yostashiro

Just noticed an issue with banner presentation. Can you please follow up on this?

@yostashiro Fixed it and explain the changes in the migration commit message as well.

AungKoKoLin1997 avatar Sep 30 '25 02:09 AungKoKoLin1997

@yostashiro I added some changes that are to make consistent with odoo 16 changes. Please review my last two commits.

AungKoKoLin1997 avatar Oct 06 '25 05:10 AungKoKoLin1997