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: provide more views in drilldown #587

Conversation

IT-Ideas
Copy link

Prior to this commit only the tree and form views where made available while drilldowning in the mis.report.instance preview.

After this commit if available, the tree, form, pivot and chart views will be provided.

The available views and orders can be easilly overriden.

Thanks for your pull request. Please take a moment to review if it meets the following
guidelines.

@OCA-git-bot
Copy link
Contributor

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

@IT-Ideas IT-Ideas force-pushed the 16.0-mis-builder-provide_more_views_in_drilldown-lst branch from d8d61f6 to fee954f Compare November 16, 2023 12:30
def _get_drilldown_model_views(self):
self.ensure_one()
types = self.env["ir.ui.view"]._read_group(
[("model", "=", self.source_aml_model_name)], ["type"], ["type"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you make _get_drilldown_model_views a model method, and pass the model name as argument?
Because in the drilldown method, we use period.source.aml_model_name.

Can you also add a little unit test for _get_drilldown_model_views?

Prior to this commit only the `tree` and `form` views where made available
while drilldowning in the `mis.report.instance` preview.

After this commit if available, the `tree`, `form`, `pivot` and `chart` views
will be provided.

The available views and orders can be easilly overriden.
@IT-Ideas IT-Ideas force-pushed the 16.0-mis-builder-provide_more_views_in_drilldown-lst branch from fee954f to 75706b2 Compare November 16, 2023 15:57
Copy link
Member

@sbidoul sbidoul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested on runboat with the Journal Items view.

Copy link

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Mar 17, 2024
@sbidoul sbidoul removed the stale PR/Issue without recent activity, it'll be soon closed automatically. label Mar 17, 2024
@IT-Ideas
Copy link
Author

@sbidoul

Copy link
Member

@rvalyi rvalyi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (code review)

@dreispt
Copy link
Member

dreispt commented May 10, 2024

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 16.0-ocabot-merge-pr-587-by-dreispt-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit ea0e03b into OCA:16.0 May 10, 2024
1 check was pending
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 312f574. Thanks a lot for contributing to OCA. ❤️

@sbidoul sbidoul deleted the 16.0-mis-builder-provide_more_views_in_drilldown-lst branch May 10, 2024 17:11
@sbidoul sbidoul mentioned this pull request May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants