mirror of
https://gitlab.com/flectra-hq/flectra.git
synced 2026-08-17 16:54:42 -05:00
[FIX] Account Budget _for_xml_id Issue
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user