[19.0][MIG] dms_auto_classification: Migration to 19.0#12
Open
dnplkndll wants to merge 15 commits into
Open
Conversation
a4d9ea6 to
0612e46
Compare
5799f35 to
4c65ce7
Compare
TT46805 [UPD] Update dms_auto_classification.pot
…ssions can use the wizard TT46805
[UPD] Update dms_auto_classification.pot Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: dms-16.0/dms-16.0-dms_auto_classification Translate-URL: https://translation.odoo-community.org/projects/dms-16-0/dms-16-0-dms_auto_classification/
Changes done: - The full path is now shown in the detail line. - The dms file that will be created will be with the name (not the full file path). - When scanning the .zip files the folders are skipped. - Add more use cases in tests - Improve documentation TT49047 [UPD] Update dms_auto_classification.pot [BOT] post-merge updates Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: dms-16.0/dms-16.0-dms_auto_classification Translate-URL: https://translation.odoo-community.org/projects/dms-16-0/dms-16-0-dms_auto_classification/
…he same label WARNING devel odoo.addons.base.models.ir_model: Two fields (file_id, data_file) of wizard.dms.classification.detail() have the same label: File. [Modules: dms_auto_classification and dms_auto_classification] TT51051 [UPD] Update dms_auto_classification.pot [BOT] post-merge updates Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: dms-16.0/dms-16.0-dms_auto_classification Translate-URL: https://translation.odoo-community.org/projects/dms-16-0/dms-16-0-dms_auto_classification/
…CL to group_dms_user TT60719
…ies (company compatibility) It is important not to apply sudo() to filter by the directories to which the user has access and to filter only by those of the appropriate company. TT60719
- `groups_id` → `group_ids` on both `ir.actions.act_window` records (19.0 field rename) - Tests: replace `env.ref()` demo-data lookups with inline fixtures in `setUpClass` — OCA CI runs without demo data
access_wizard_dms_classification_detail_user pointed to model_dms_classification_template instead of model_wizard_dms_classification_detail, so group_dms_user never got CRUD access to wizard.dms.classification.detail — causing AccessError when running the classify wizard as a regular DMS user.
0612e46 to
3a3752a
Compare
…ation pylint-odoo W8161 mandates self.env._() over the legacy _() lazy import.
…ile_id to break 19.0 recursive invalidation loop
…:1] (removed in 19.0)
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.
Port of `dms_auto_classification` from 18.0 to 19.0. Migration guide: https://odoo-community.org/page/migration-guide
Stacks on ledoent/dms #10 (seams branch).
Non-mechanical adaptations worth flagging
groups_id→group_idson bothir.actions.act_windowrecords — 19.0 renamed this field on the model.Tests: demo-data refs replaced with inline fixtures —
setUpClassnow createsdms.storage,dms.directory, anddms.classification.templatedirectly. The 18.0 tests usedenv.ref("dms.directory_01_demo")andenv.ref("dms_auto_classification.dms_classification_template_documents"), both of which fail in OCA CI which runs without demo data.Pre-existing ACL bug fixed —
ir.model.access.csvrow foraccess_wizard_dms_classification_detail_userpointed tomodel_dms_classification_templateinstead ofmodel_wizard_dms_classification_detail. Effect:dms.group_dms_usermembers could not run the classify wizard (AccessError on the detail records created during Analyze). Fixed in the[FIX]commit.