diff --git a/account_budget_forecast/models/account_analytic_account.py b/account_budget_forecast/models/account_analytic_account.py index 2dfbbc1..9486f84 100644 --- a/account_budget_forecast/models/account_analytic_account.py +++ b/account_budget_forecast/models/account_analytic_account.py @@ -38,6 +38,12 @@ class AccountAnalyticAccount(models.Model): domain=[("budget_category", "=", "miscellaneous")], copy=True, ) + budget_forecast_unplanned_ids = fields.One2many( + "budget.forecast", + "analytic_id", + domain=[("budget_category", "=", "unplanned")], + copy=True, + ) project_section_budget_ids = fields.One2many( "budget.forecast", "analytic_id", diff --git a/account_budget_forecast/models/budget_forecast.py b/account_budget_forecast/models/budget_forecast.py index 12c2083..fce0912 100644 --- a/account_budget_forecast/models/budget_forecast.py +++ b/account_budget_forecast/models/budget_forecast.py @@ -28,6 +28,7 @@ class BudgetForecast(models.Model): ("equipment", "Equipment"), ("subcontractors", "Subcontractors"), ("miscellaneous", "Miscellaneous"), + ("unplanned", "Unplanned"), ], string=_("Budget Category"), ) diff --git a/account_budget_forecast/views/account_analytic_account_categories.xml b/account_budget_forecast/views/account_analytic_account_categories.xml index afd9a20..5641fc8 100644 --- a/account_budget_forecast/views/account_analytic_account_categories.xml +++ b/account_budget_forecast/views/account_analytic_account_categories.xml @@ -142,6 +142,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + +