[FIX] Account Budget _for_xml_id Issue

This commit is contained in:
dhruvp431
2022-01-12 17:56:54 +05:30
parent e4316b3c10
commit 7a021e04f1
@@ -237,7 +237,7 @@ class CrossoveredBudgetLines(models.Model):
def action_open_budget_entries(self):
if self.analytic_account_id:
# if there is an analytic account, then the analytic items are loaded
action = self.env['ir.actions.act_window'].for_xml_id('analytic', 'account_analytic_line_action_entries')
action = self.env['ir.actions.act_window']._for_xml_id('analytic.account_analytic_line_action_entries')
action['domain'] = [('account_id', '=', self.analytic_account_id.id),
('date', '>=', self.date_from),
('date', '<=', self.date_to)
@@ -246,7 +246,7 @@ class CrossoveredBudgetLines(models.Model):
action['domain'] += [('general_account_id', 'in', self.general_budget_id.account_ids.ids)]
else:
# otherwise the journal entries booked on the accounts of the budgetary postition are opened
action = self.env['ir.actions.act_window'].for_xml_id('account', 'action_account_moves_all_a')
action = self.env['ir.actions.act_window']._for_xml_id('account.action_account_moves_all_a')
action['domain'] = [('account_id', 'in',
self.general_budget_id.account_ids.ids),
('date', '>=', self.date_from),