Skip to content

[fork-CI] [19.0][MIG] report_display_name_in_footer: Migration to 19.0#4

Draft
dnplkndll wants to merge 7 commits into
19.0from
19.0-mig-report_display_name_in_footer
Draft

[fork-CI] [19.0][MIG] report_display_name_in_footer: Migration to 19.0#4
dnplkndll wants to merge 7 commits into
19.0from
19.0-mig-report_display_name_in_footer

Conversation

@dnplkndll
Copy link
Copy Markdown

@dnplkndll dnplkndll commented May 29, 2026

Port of report_display_name_in_footer from 18.0 to 19.0. Follows the OCA migration guide.

19.0 relevance

19.0 core absorbed the footer-name template hook into all seven web.external_layout_* templates (each renders t-if="report_type == 'pdf' and display_name_in_footer"), and account sets that flag for invoice reports only. This module remains distinct: it provides the generic, any-model activation via the report.display_name_in_footer_models config parameter (per-model list or all), driven from _pre_render_qweb_pdf — the same data.update({"display_name_in_footer": True}) mechanism core account uses.

Non-mechanical adaptations worth flagging

  • views/report_templates.xml removed entirely. The 18.0 module re-implemented the footer-name markup via xpath inheritance of the layout templates; 19.0 core now ships those hooks natively, so the inheritance is redundant (and its xpaths no longer match the restructured templates). The module is now model-only.

Shide and others added 7 commits May 29, 2026 19:34
Signed-off-by: Don Kendall <dkendall@ledoweb.com>
- Drop views/report_templates.xml entirely: 19.0 core absorbed the
  footer-name hook into all seven web.external_layout_* templates
  (t-if="report_type=='pdf' and display_name_in_footer"). The module now
  provides only the generic, any-model config-driven activation
  (report.display_name_in_footer_models) via _pre_render_qweb_pdf — distinct
  from core account, which sets the flag for invoices only.

Signed-off-by: Don Kendall <dkendall@ledoweb.com>
@dnplkndll dnplkndll force-pushed the 19.0-mig-report_display_name_in_footer branch from 6bd9f13 to 8aef7a8 Compare May 29, 2026 23:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants