Skip to content

[20.0][MIG] project_group: Migration to 20.0 - #1895

Open
mcastillol14 wants to merge 18 commits into
OCA:20.0from
mcastillol14:20.0-mig-project_group
Open

mcastillol14 wants to merge 18 commits into
OCA:20.0from
mcastillol14:20.0-mig-project_group

Conversation

@mcastillol14

Copy link
Copy Markdown

Migration of project_group from 19.0 to 20.0, keeping the module history.

Changes:

  • Security: ir.rule converted by hand to security/ir.access.csv (the official script fails inside the 20.0 container because the core modules are already converted).
    • Project: the rule becomes a row for base.group_user, operation r. In 19.0 the ACL of group_user on project.project is read only, so no permission is lost or widened.
    • Tasks: the task rule is not migrated, since 20.0 core decides task visibility with ('project_id', 'access', 'read'), which already goes through the project row. Reviewers, please check this point.
  • Tests: _test_user_groups = None added, and a new test_03_ir_access_domains checking real access with three profiles (group member, project user and employee without group), without demo data.
  • Readme: the option is now called "Team members only" (it was "Invited internal users").
  • The view xpath still matches in 20.0 without changes.

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.rule should be removed and replaced by the access row).

Migration issue: #1828.

@oca-cla-bot

oca-cla-bot Bot commented Nov 25, 2026

Copy link
Copy Markdown

The following commit authors need to sign the Contributor License Agreement:

CLA not signed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants