diff --git a/account_budget_forecast/models/budget_forecast.py b/account_budget_forecast/models/budget_forecast.py
index 0d4182c..9909e85 100644
--- a/account_budget_forecast/models/budget_forecast.py
+++ b/account_budget_forecast/models/budget_forecast.py
@@ -446,3 +446,10 @@ class BudgetForecast(models.Model):
record.balance = None
record.diff_expenses = record.plan_amount_with_coeff - record.actual_amount
+
+ def action_view_analytic_lines(self):
+ action = self.env["ir.actions.actions"]._for_xml_id(
+ "analytic.account_analytic_line_action_entries"
+ )
+ action["domain"] = [("tag_ids", "ilike", self.analytic_tag.id)]
+ return action
diff --git a/account_budget_forecast/views/budget_forecast.xml b/account_budget_forecast/views/budget_forecast.xml
index 7534ee4..41e3f70 100644
--- a/account_budget_forecast/views/budget_forecast.xml
+++ b/account_budget_forecast/views/budget_forecast.xml
@@ -38,17 +38,9 @@
-
-
+