Repository navigation
[20.0][MIG] project_group: Migration to 20.0 - #1895
Open
mcastillol14 wants to merge 18 commits into
Open
mcastillol14 wants to merge 18 commits into
mcastillol14 wants to merge 18 commits into
Conversation
Currently translated at 100.0% (4 of 4 strings) Translation: project-19.0/project-19.0-project_group Translate-URL: https://translation.odoo-community.org/projects/project-19-0/project-19-0-project_group/sl/
Currently translated at 100.0% (4 of 4 strings) Translation: project-19.0/project-19.0-project_group Translate-URL: https://translation.odoo-community.org/projects/project-19-0/project-19-0-project_group/de/
|
The following commit authors need to sign the Contributor License Agreement: |
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
project_groupfrom 19.0 to 20.0, keeping the module history.Changes:
ir.ruleconverted by hand tosecurity/ir.access.csv(the official script fails inside the 20.0 container because the core modules are already converted).base.group_user, operationr. In 19.0 the ACL ofgroup_useronproject.projectis read only, so no permission is lost or widened.('project_id', 'access', 'read'), which already goes through the project row. Reviewers, please check this point._test_user_groups = Noneadded, and a newtest_03_ir_access_domainschecking real access with three profiles (group member, project user and employee without group), without demo data.3 tests passing on a fresh 20.0 database without demo data. Checked in the browser with four users: members of the group see the projects of their group, an employee without group only sees the open ones, and the Groups field is shown only with "Team members only".
Not covered: updating from a 19.0 database with real data (the old
ir.ruleshould be removed and replaced by the access row).Migration issue: #1828.