Repository navigation
[20.0][MIG] report_qweb_field_option: Migration to 20.0 - #1243
Open
yabdelhamed wants to merge 24 commits into
Open
yabdelhamed wants to merge 24 commits into
yabdelhamed wants to merge 24 commits into
Conversation
Currently translated at 100.0% (26 of 26 strings) Translation: reporting-engine-16.0/reporting-engine-16.0-report_qweb_field_option Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-16-0/reporting-engine-16-0-report_qweb_field_option/it/
Currently translated at 100.0% (25 of 25 strings) Translation: reporting-engine-18.0/reporting-engine-18.0-report_qweb_field_option Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-18-0/reporting-engine-18-0-report_qweb_field_option/nl_NL/
…ng the decimal places Add domain field in report config for better control of decimal places.
ir.model.access and ir.rule are merged into ir.access, so the access rights and the multi-company rule move to security/ir.access.csv, with a test covering them. safe_eval no longer exposes pytz, timezone now uses ZoneInfo like the server actions do.
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_qweb_field_optionto 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.ir.model.accessandir.ruleare merged intoir.accessin 20.0, so the module failed to install (KeyError: 'ir.model.access'). The four access rows and the multi-company rule now live insecurity/ir.access.csv, the rule as a row without a group, like core does.odoo.tools.safe_evalno longer exposespytz.timezonein the domain eval context is nowZoneInfo, as inir.actions_get_eval_context.except Exceptionfallbacks (domain evaluation and option parsing) are kept on purpose so a bad option doesn't break report rendering, markednoqa: BLE001for ruff on 20.0.test_access_rights: an internal user can read options, can't write them and doesn't see another company's options, since the access file was rewritten.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:ir.model.access. With the access file converted butpytzstill used: 1 error of 5 tests.base.group_userwrite access, makestest_access_rightsfail. Disabling the_get_fieldoverride makes 4 of the 6 fail.pre-commit run -apasses.Part of #1206.