-
-
Notifications
You must be signed in to change notification settings - Fork 309
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
[14.0][IMP] mis_builder_budget: drilldown: default budget & account #605
base: 14.0
Are you sure you want to change the base?
[14.0][IMP] mis_builder_budget: drilldown: default budget & account #605
Conversation
Hi @sbidoul, |
85e222a
to
b09a487
Compare
@@ -944,6 +944,8 @@ def drilldown(self, arg): | |||
account_id, | |||
) | |||
domain.extend(period._get_additional_move_line_filter()) | |||
context = arg.get("context") or {} |
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.
This PR sounds interesting, but why looking for the context in arg
instead of self.env.context
?
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.
Sorry for late reply. I get the context now from frozendict self.env.context.
arg["context"] = { | ||
"default_budget_id": period.source_mis_budget_by_account_id.id, | ||
"default_account_id": arg.get("account_id"), | ||
} |
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.
Mutating arg
here does not sound right. Could this be propagated with with_context
?
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.
Done.
b09a487
to
0586b76
Compare
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. |
Drilldown to "Budget By Account Items": Pass default budget and default account.
If the budget allows items overlap, one can create new budget items in the drilldown.