Skip to content

[ADD] helpdesk_mgmt_account: links account moves and helpdesk tickets.#880

Open
nicolas-delbovier-acsone wants to merge 7 commits intoOCA:16.0from
acsone:16.0-add-helpdesk_mgmt_account
Open

[ADD] helpdesk_mgmt_account: links account moves and helpdesk tickets.#880
nicolas-delbovier-acsone wants to merge 7 commits intoOCA:16.0from
acsone:16.0-add-helpdesk_mgmt_account

Conversation

@nicolas-delbovier-acsone
Copy link
Copy Markdown

image image

@nicolas-delbovier-acsone nicolas-delbovier-acsone force-pushed the 16.0-add-helpdesk_mgmt_account branch from 33a0369 to cfc4e81 Compare November 6, 2025 11:35
@marcelsavegnago
Copy link
Copy Markdown
Member

@nicolas-delbovier-acsone please make sure to fill in the README.rst files with the module info or remove any empty ones.

The button to view Helpdesk tickets from an Account Move was incorrectly
passing a 'default_sale_order_id' in the action context due to a
copy-paste error from the sales module.

This caused new tickets created from an Account Move view to be linked to an
unrelated Sale Order.
Shifting the action logic to Python facilitates dynamic customization. This approach allows inheriting modules to override or extend the action via super(), avoiding the limitations and complexity of XML xpath inheritance for conditional logic
Following the removal of the erroneous 'default_sale_order_id' from
the account move action, this commit strengthens the test suite to
prevent regressions.

The test logic now explicitly validates the content of the action
context. This ensures that:
- The expected Account Move ID is present.
- No unrelated context keys (like 'default_sale_order_id') are
  leaking into the view from inherited methods or copy-paste errors.
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.

3 participants