Skip to content

Commit

Permalink
[FIX] Change actions using _for_xml_id
Browse files Browse the repository at this point in the history
  • Loading branch information
vib-adhoc committed Oct 24, 2022
1 parent e919c07 commit 060867e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions account_tax_settlement/models/account_journal_dashboard.py
Expand Up @@ -76,17 +76,13 @@ def open_action(self):
open_report = self._context.get('open_report', False)
debt_balance = self._context.get('debt_balance', False)
if tax_settlement:
action = self.env.ref(
'account_tax_settlement.'
'action_account_tax_move_line').sudo().read()[0]
action = self.env["ir.actions.actions"]._for_xml_id('account_tax_settlement.action_account_tax_move_line')
# action['domain'] = self._get_tax_settlement_lines_domain()
action['domain'] = (
self._get_tax_settlement_lines_domain_by_tags())
return action
elif accounts_balance:
action = self.env.ref(
'account_ux.'
'action_move_line_analisis').sudo().read()[0]
action = self.env["ir.actions.actions"]._for_xml_id('account_ux.action_move_line_analisis')
# action['domain'] = self._get_tax_settlement_lines_domain()
action['domain'] = (
self._get_tax_settlement_lines_domain_by_tags_accounts())
Expand Down
2 changes: 1 addition & 1 deletion l10n_ar_edi_ux/models/res_partner.py
Expand Up @@ -23,7 +23,7 @@ def button_update_partner_data_from_afip(self):
wiz = self.env['res.partner.update.from.padron.wizard'].with_context(
active_ids=self.ids, active_model=self._name).create({})
wiz.change_partner()
action = self.env.ref('l10n_ar_edi_ux.action_partner_update').sudo().read()[0]
action = self.env["ir.actions.actions"]._for_xml_id('l10n_ar_edi_ux.action_partner_update')
action['res_id'] = wiz.id
return action

Expand Down

0 comments on commit 060867e

Please sign in to comment.