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

[14.0][IMP] mis_builder_budget: drilldown: default budget & account #605

Open
wants to merge 1 commit into
base: 14.0
Choose a base branch
from

Conversation

norlinhenrik
Copy link
Contributor

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.

@OCA-git-bot
Copy link
Contributor

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

@norlinhenrik norlinhenrik force-pushed the 14.0-imp-mis_builder_budget-drilldown branch from 85e222a to b09a487 Compare April 21, 2024 14:43
@@ -944,6 +944,8 @@ def drilldown(self, arg):
account_id,
)
domain.extend(period._get_additional_move_line_filter())
context = arg.get("context") or {}
Copy link
Member

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 ?

Copy link
Contributor Author

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"),
}
Copy link
Member

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 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@norlinhenrik norlinhenrik force-pushed the 14.0-imp-mis_builder_budget-drilldown branch from b09a487 to 0586b76 Compare June 17, 2024 19:47
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 Oct 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale PR/Issue without recent activity, it'll be soon closed automatically.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants