Skip to content

Commit

Permalink
[IMP] mis_builder_budget: allow Analytic Accounts on account budget
Browse files Browse the repository at this point in the history
  • Loading branch information
dreispt committed Aug 27, 2024
1 parent e5ef4b5 commit 4bf7bc6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mis_builder_budget/models/mis_budget_by_account_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@


class MisBudgetByAccountItem(models.Model):
_inherit = ["mis.budget.item.abstract", "prorata.read_group.mixin"]
_inherit = [
"mis.budget.item.abstract",
"prorata.read_group.mixin",
"analytic.mixin",
]
_name = "mis.budget.by.account.item"
_description = "MIS Budget Item (by Account)"
_order = "budget_id, date_from, account_id"
Expand Down
6 changes: 6 additions & 0 deletions mis_builder_budget/views/mis_budget_by_account_item.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@
<field name="budget_date_to" column_invisible="1" />
<field name="name" />
<field name="account_id" />
<field
name="analytic_distribution"
widget="analytic_distribution"
optional="show"
groups="analytic.group_analytic_accounting"
/>
<field name="date_range_id" />
<field name="date_from" />
<field name="date_to" />
Expand Down

0 comments on commit 4bf7bc6

Please sign in to comment.