Repository navigation
[20.0][MIG] report_partner_address: Migration to 20.0 - #1245
Open
yabdelhamed wants to merge 12 commits into
Open
yabdelhamed wants to merge 12 commits into
yabdelhamed wants to merge 12 commits into
Conversation
Co-authored-by: Yoshi Tashiro <[email protected]>
Currently translated at 100.0% (5 of 5 strings) Translation: reporting-engine-19.0/reporting-engine-19.0-report_partner_address Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-19-0/reporting-engine-19-0-report_partner_address/it/
_prepare_display_address takes without_name instead of without_company in 20.0, with the same meaning. The contact widget override had no test, one now checks the name is hidden when address details are set.
2 of 22 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Migration of
report_partner_addressto 20.0, done with theformat-patchprocedure from the migration guide, so the history and authors are kept.Changes for 20.0:
20.0.1.0.0.res.partner._prepare_display_addresstakeswithout_nameinstead ofwithout_companyin 20.0 (same meaning, it drops the parent name), so every_display_address()call raised aTypeError. The override now uses the new parameter.test_contact_widget_hides_name_with_address_details: thebase.contact_nameoverride had no test. It renders the contact widget and checks the name is hidden whenaddress_detailsis set and shown again when it's cleared.Tests, run locally with the CI images
ghcr.io/oca/oca-ci/py3.12-odoo20.0andpy3.12-ocb20.0againstpgvector/pgvector:pg16, usingoca_install_addons,oca_init_test_databaseandoca_run_tests:unexpected keyword argument 'without_company').address_detailsignored in_prepare_display_address, 2 of the 3 fail.pre-commit run -apasses.Part of #1206.