Skip to content

Commit

Permalink
[FIX] account_tax_settlement: get only journals ids in report
Browse files Browse the repository at this point in the history
X-original-commit: a55d108
  • Loading branch information
cav-adhoc committed May 7, 2024
1 parent ba9e151 commit 2563df4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion account_tax_settlement/models/account_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def action_closure_journal_entry(self, options):
self.ensure_one()

companies = self.env['account.journal'].browse(
[journal['id'] for journal in options.get('journals', []) if not journal['id'] in ('divider', 'group')]
[journal['id'] for journal in options.get('journals', []) if journal['id'] != 'divider' and journal['model'] != 'account.journal.group']
).mapped('company_id')
if len(companies) != 1:
raise ValidationError(_('La liquidación se debe realizar filtrando por 1 y solo 1 compañía en el reporte'))
Expand Down

0 comments on commit 2563df4

Please sign in to comment.