-
-
Notifications
You must be signed in to change notification settings - Fork 314
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
[IMP] mis_builder: provide more views in drilldown #587
Conversation
Hi @sbidoul, |
d8d61f6
to
fee954f
Compare
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"] |
There was a problem hiding this comment.
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.
fee954f
to
75706b2
Compare
There was a problem hiding this 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.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM (code review)
/ocabot merge patch |
What a great day to merge this nice PR. Let's do it! |
Congratulations, your PR was merged at 312f574. Thanks a lot for contributing to OCA. ❤️ |
Prior to this commit only the
tree
andform
views where made available while drilldowning in themis.report.instance
preview.After this commit if available, the
tree
,form
,pivot
andchart
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.