Skip to content

[19.0][MIG] web_form_banner: Migration to 19.0#3309

Merged
OCA-git-bot merged 16 commits into
OCA:19.0from
qrtl:19.0-mig-web_form_banner
Jul 1, 2026
Merged

[19.0][MIG] web_form_banner: Migration to 19.0#3309
OCA-git-bot merged 16 commits into
OCA:19.0from
qrtl:19.0-mig-web_form_banner

Conversation

@AungKoKoLin1997

Copy link
Copy Markdown
Contributor

Based on #3308
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

yostashiro and others added 12 commits October 8, 2025 06:10
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

Co-authored-by: Yoshi Tashiro <tashiro@quartile.co>
- Add (partial) support for elements inside groups to be a target
  XPath without distorting the presentation
- Remove obsolete bits
@AungKoKoLin1997 AungKoKoLin1997 force-pushed the 19.0-mig-web_form_banner branch from 81e8a66 to 6f32005 Compare October 8, 2025 07:06
@AungKoKoLin1997

AungKoKoLin1997 commented Oct 9, 2025

Copy link
Copy Markdown
Contributor Author

For some reason, the demo data are not being loaded in runboat and CI tests.

@yostashiro

Copy link
Copy Markdown
Member

@AungKoKoLin1997 Can we switch to not relying on demo data for tests?

- Fix not updating banner when pager is update or duplicate or create
- Fix presentation of help in web form banner rule
@AungKoKoLin1997 AungKoKoLin1997 force-pushed the 19.0-mig-web_form_banner branch 2 times, most recently from 1dcf04d to e728acd Compare October 16, 2025 09:40
Comment thread web_form_banner/demo/web_form_banner_rule_demo.xml Outdated
Comment thread web_form_banner/demo/web_form_banner_rule_demo.xml Outdated
Comment thread web_form_banner/tests/test_web_form_banner.py Outdated
Comment thread web_form_banner/tests/test_web_form_banner.py Outdated
Comment thread web_form_banner/tests/test_web_form_banner.py Outdated
Comment thread web_form_banner/tests/test_web_form_banner.py Outdated
Comment thread web_form_banner/tests/test_web_form_banner.py
Comment thread web_form_banner/tests/test_web_form_banner.py Outdated

@yostashiro yostashiro left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review and functional test. LGTM. 👍

@kanda999 kanda999 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code and functional review.

@AungKoKoLin1997 AungKoKoLin1997 marked this pull request as draft May 19, 2026 01:17
@AungKoKoLin1997 AungKoKoLin1997 marked this pull request as ready for review May 25, 2026 01:31

@bealdav bealdav left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok for me. Thanks

@BhaveshHeliconia BhaveshHeliconia left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@sebastienbeau

Copy link
Copy Markdown
Member

/ocabot merge nobump

@OCA-git-bot

Copy link
Copy Markdown
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 19.0-ocabot-merge-pr-3309-by-sebastienbeau-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 33dcecc into OCA:19.0 Jul 1, 2026
5 of 7 checks passed
@OCA-git-bot

Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at 04d2033. Thanks a lot for contributing to OCA. ❤️

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants