Skip to content

[fork-CI] [19.0][MIG] report_label: Migration to 19.0#3

Draft
dnplkndll wants to merge 25 commits into
19.0from
19.0-mig-report_label
Draft

[fork-CI] [19.0][MIG] report_label: Migration to 19.0#3
dnplkndll wants to merge 25 commits into
19.0from
19.0-mig-report_label

Conversation

@dnplkndll
Copy link
Copy Markdown

@dnplkndll dnplkndll commented May 29, 2026

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

No runtime adaptations were required — the server-action dispatch (_run_action_report_label_multi) and ir.actions.report.get_paperformat() override points are unchanged in 19.0 core.

Non-mechanical adaptations worth flagging

  • Test fixture rebuilt for no-demo CI. The test referenced the demo server action via env.ref("report_label.actions_server_label_partner_address"), which doesn't resolve under OCA CI's --without-demo=all. The action, its paperformat-label and QWeb template are now created inline in setUp. demo/demo.xml is unchanged (still useful for runboat/manual demo).
  • line_ids default switched to the lambda form for pylint-odoo E8148 (inheritable-method-lambda), a check newly enforced on 19.0.

ivantodorovich and others added 25 commits May 29, 2026 19:08
[IMP] allow to create report.paperformat.label without creating each time report.paperformat item
[FIX] Remove useless data that are specific Label: Agipa 114016
[REF] simplify UI, removing custom entry for ir.actions.server
[ADD] migration script to migrate name field
[IMP] Add label_background_color to allow to easily define background-color for label. (That can be usefull to debug label positions)
[DOC] update screenshots to new V16 versions
[IMP] Set body and html margin to 0 to to able to be predictive when designing a label sheet
[IMP] replace style by class in the label template, reducing the size of the html code generated.
[IMP] replace label_template by label_template_view_id on the ir.actions.server model, removing useless xml and python code. (provide migration scripts)
[REF] Split wizard file into wizard and wizard line file, following OCA guidelines
Currently translated at 100.0% (56 of 56 strings)

Translation: reporting-engine-16.0/reporting-engine-16.0-report_label
Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-16-0/reporting-engine-16-0-report_label/es/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: reporting-engine-16.0/reporting-engine-16.0-report_label
Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-16-0/reporting-engine-16-0-report_label/
Signed-off-by: Don Kendall <dkendall@ledoweb.com>
- Rebuild the test fixture in setUp: OCA CI runs --without-demo=all, so the
  demo server action / paperformat / QWeb template the test referenced via
  env.ref are now created inline instead.
- One2many default uses the lambda form (default=lambda self:
  self._default_line_ids()) for pylint-odoo E8148 (inheritable-method-lambda).

Signed-off-by: Don Kendall <dkendall@ledoweb.com>
@dnplkndll dnplkndll force-pushed the 19.0-mig-report_label branch from 2bfd09a to 4c04dad Compare May 29, 2026 23:17
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.