Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IMP] mis-builder: set analytic account constraint in the filter when displayed #592

Closed
wants to merge 3 commits into from

Conversation

IT-Ideas
Copy link

@IT-Ideas IT-Ideas commented Dec 26, 2023

Up to now, the domain on analytic_account was not visible to the user. After this commit, the domain will be visible in the filters if they are displayed.

Blocked by #591

@OCA-git-bot
Copy link
Contributor

Hi @sbidoul,
some modules you are maintaining are being modified, check this out!

@IT-Ideas
Copy link
Author

Blocked by #591

Laurent Stukkens added 3 commits December 27, 2023 14:59
This commit ensure that the context used by the `mis_report_widget`
widget RPC calls is correctly computed.

Previously using the `mis_analytic_domain` context key was useless
as not taken into account in the widget.
This commit allows passing the name of a field corresponding to the
analytic account to be passed into the domain.

This is usefull when the component is directly used in a view of a model
containing the analytical account.
… displayed

This commit extracts, when the filters are displayed, the domain info
from the `mis_analytic_domain` context key or from the
analyticAccountIdField props and add it to the active filters.

The system prevents the user from removing the constraint.
@IT-Ideas IT-Ideas force-pushed the 16.0-mis-builder_set_filter-lst branch from 254dccc to 1617767 Compare December 27, 2023 14:01
@IT-Ideas IT-Ideas changed the title 16.0 mis builder set filter lst [IMP] mis-builder: set analytic account constraint in the filter when displayed Dec 27, 2023
@IT-Ideas
Copy link
Author

This PR is actually specific to analytic_account_id which is absolutely not suitable 😅

@IT-Ideas IT-Ideas closed this Jan 16, 2024
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.

2 participants