Skip to content

[20.0][MIG] report_partner_address: Migration to 20.0 - #1245

Open
yabdelhamed wants to merge 12 commits into
OCA:20.0from
yabdelhamed:20.0-mig-report_partner_address
Open

yabdelhamed wants to merge 12 commits into
OCA:20.0from
yabdelhamed:20.0-mig-report_partner_address

Conversation

@yabdelhamed

Copy link
Copy Markdown

Migration of report_partner_address to 20.0, done with the format-patch procedure from the migration guide, so the history and authors are kept.

Changes for 20.0:

  • Version bumped to 20.0.1.0.0.
  • res.partner._prepare_display_address takes without_name instead of without_company in 20.0 (same meaning, it drops the parent name), so every _display_address() call raised a TypeError. The override now uses the new parameter.
  • New test_contact_widget_hides_name_with_address_details: the base.contact_name override had no test. It renders the contact widget and checks the name is hidden when address_details is set and shown again when it's cleared.
  • XML headers added by pre-commit.

Tests, run locally with the CI images ghcr.io/oca/oca-ci/py3.12-odoo20.0 and py3.12-ocb20.0 against pgvector/pgvector:pg16, using oca_install_addons, oca_init_test_database and oca_run_tests:

  • With only the version bumped: 0 failed, 2 error(s) of 2 tests (unexpected keyword argument 'without_company').
  • Odoo: 0 failed, 0 error(s) of 3 tests.
  • OCB: 0 failed, 0 error(s) of 3 tests.
  • With the template condition removed, the new test fails. With address_details ignored in _prepare_display_address, 2 of the 3 fail.

pre-commit run -a passes.

Part of #1206.

@yabdelhamed yabdelhamed mentioned this pull request Nov 21, 2026
2 of 22 tasks
@OCA-git-bot OCA-git-bot added series:20.0 mod:report_partner_address Module report_partner_address labels Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:report_partner_address Module report_partner_address series:20.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants