Skip to content

Consolidate APEX permission groups into a standard Odoo selection dropdown - #117

Draft
agrogers with Copilot wants to merge 2 commits into
mainfrom
copilot/consolidate-apex-permissions-dropdown
Draft

Consolidate APEX permission groups into a standard Odoo selection dropdown#117
agrogers with Copilot wants to merge 2 commits into
mainfrom
copilot/consolidate-apex-permissions-dropdown

Conversation

Copilot AI commented May 9, 2026

Copy link
Copy Markdown
Contributor

APEX groups (Student, Teacher, Manager) were displayed as independent checkboxes because the implied_ids chain was incomplete — Teacher did not imply Student. Without a linear hierarchy, Odoo cannot collapse same-category groups into a single selection field.

Changes

  • security/groups.xml

    • Uncomment implied_ids on group_aps_teachergroup_aps_student, completing the chain: Manager → Teacher → Student
    • Add sequence (10 / 20 / 30) to enforce display order in the dropdown
  • README.md — update security section to document dropdown behaviour and inheritance chain

Result

<record id="group_aps_teacher" model="res.groups">
    <field name="implied_ids" eval="[(4, ref('group_aps_student'))]"/>
    ...
</record>
<record id="group_aps_manager" model="res.groups">
    <field name="implied_ids" eval="[(4, ref('group_aps_teacher'))]"/>
    ...
</record>

All three groups already shared module_category_aps. With the complete implied_ids chain in place, Odoo renders them as a single dropdown — assigning Manager grants Teacher + Student permissions transitively.

Copilot AI linked an issue May 9, 2026 that may be closed by this pull request
- Uncomment implied_ids on group_aps_teacher so Teacher implies Student,
  completing the linear chain Manager > Teacher > Student. With all three
  groups sharing the same module_category_aps category, Odoo now renders
  them as a single dropdown selector on the user form instead of individual
  checkboxes.
- Add sequence fields (10 / 20 / 30) so the dropdown order is
  Student → Teacher → Manager.
- Update README security section to document the new dropdown behaviour
  and permission inheritance chain.

Agent-Logs-Url: https://github.com/agrogers/aps_sis/sessions/d0761179-07fd-4e34-8268-98e362186fd6

Co-authored-by: agrogers <13920678+agrogers@users.noreply.github.com>
Copilot AI changed the title [WIP] Consolidate APEX permissions into a single dropdown Consolidate APEX permission groups into a standard Odoo selection dropdown May 9, 2026
Copilot AI requested a review from agrogers May 9, 2026 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Consolidate APEX permissions into a single dropdown

2 participants