Skip to content

Open linked resource with sibling pager navigation#56

Draft
Copilot wants to merge 4 commits intomainfrom
copilot/add-navigation-for-linked-resources
Draft

Open linked resource with sibling pager navigation#56
Copilot wants to merge 4 commits intomainfrom
copilot/add-navigation-for-linked-resources

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 17, 2026

  • Add action_open_linked_resource method in models/aps_resources/actions.py with domain set to all sibling child IDs for pager navigation
  • Update "Open..." button in Linked Resources inline list to call action_open_linked_resource
  • Remove redundant "Open in List View" button
  • Fix: change view_mode: 'list,form'view_mode: 'form' + views: [[False, 'form']] so clicking "Open..." opens the resource's form view directly (not the list) while the domain drives the ◄/► pager across all siblings
  • CodeQL scan — 0 alerts
Original prompt

This section details on the original issue you should resolve

<issue_title>When a linked resource is opened via the "Open..." button in the Resource form include the relevant active ids</issue_title>
<issue_description>I want to be able to step through the linked resources for this resource using the normal Odoo navigation buttons. But when i open the resource it shows only the one resource I opened. I want to see that resource with the possibility of using the next / previous odoo buttons to navigate to the other linked resources in the list.

If this can be implemented we no longer need the dedicated button that provided this fucntionality.

Form:
aps_sis.view_aps_resources_form

List View on that form:

Button that opens the resource:

Button to remove:

</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.

Co-authored-by: agrogers <13920678+agrogers@users.noreply.github.com>
Copilot AI changed the title [WIP] Add navigation for linked resources when opening from form Open linked resource with sibling pager navigation Mar 17, 2026
Copilot AI requested a review from agrogers March 17, 2026 23:53
@agrogers
Copy link
Copy Markdown
Owner

@copilot
The button 'Open' button the linked resources list on the resources form now opens to a list of all the linked resources. This is half right - we want access to all the linked resources.
But the open button should open in form view the linked resource we clicked on. Then, we can move between linked resources using the Next / Previous buttons on the form.

…gation

Co-authored-by: agrogers <13920678+agrogers@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Mar 18, 2026

@copilot
The button 'Open' button the linked resources list on the resources form now opens to a list of all the linked resources. This is half right - we want access to all the l...

Fixed in a8e5e05. The root cause was view_mode: 'list,form' — Odoo interprets the first view type as the default, so it was landing on the list. Changed to view_mode: 'form' with views: [[False, 'form']] so clicking "Open..." goes directly to that resource's form view. The domain scoped to all sibling linked-resource IDs remains in place, so the ◄ / ► pager buttons step through the full set of linked resources.

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.

When a linked resource is opened via the "Open..." button in the Resource form include the relevant active ids

2 participants