Skip to content

Commit

Permalink
[FIX] public_budget: fix print witholdings report from Payment gruup
Browse files Browse the repository at this point in the history
  • Loading branch information
nicomacr committed Oct 24, 2022
1 parent a396d80 commit fef876e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions public_budget/models/account_payment_group.py
Expand Up @@ -454,6 +454,10 @@ def action_aeroo_certificado_de_retencion_report(self):
'supplier')
if not payments:
return False
return self.env['ir.actions.report'].search(
[('report_name', '=', 'l10n_ar_account_withholding.report_withholding_certificate')],
limit=1).report_action(payments)
return {
'actions': [
{'type': 'ir.actions.act_window_close'},
self.env.ref('l10n_ar_account_withholding.action_report_withholding_certificate').report_action(payments.ids),
],
'type': 'ir.actions.act_multi',
}

0 comments on commit fef876e

Please sign in to comment.