credit-control icon indicating copy to clipboard operation
credit-control copied to clipboard

Missing a required positional argument res_ids

Open hevalito opened this issue 11 months ago • 0 comments

Module

OCA/credit-control

Describe the bug

Upon attempting to send an overdue reminder for an invoice in Odoo 16, hosted on Odoo.sh, the system throws a TypeError during the validation step. This occurs after clicking "Send an overdue reminder" and then "Validate" on an overdue invoice. The error suggests that the IrActionsReport._render() method is missing a required positional argument res_ids.

To Reproduce

Affected versions: Odoo 16.0+e (Hosted on Odoo.sh)

Steps to reproduce the behavior:

  1. Go to an overdue invoice.
  2. Click on "Send an overdue reminder".
  3. In the validation step, click "Validate".

Expected behavior

The overdue reminder should be sent to the client without any errors. The system should generate an email with the overdue invoice attached.

Screenshots

screen_1 screen_2 screen_3 screen_4

Traceback

Traceback (most recent call last):
  File "/home/odoo/src/odoo/odoo/http.py", line 1633, in _serve_db
    ...
  File "/home/odoo/src/user/credit-control-14.0/account_invoice_overdue_reminder/wizard/overdue_reminder_wizard.py", line 536, in _get_attachment_ids
    report_bin, report_format = inv_report._render([inv.id])
TypeError: IrActionsReport._render() missing 1 required positional argument: 'res_ids'

Additional context

  1. Odoo Enterprise
  2. This issue has been encountered in an environment hosted on Odoo.sh.

hevalito avatar Mar 27 '24 08:03 hevalito