credit-control
credit-control copied to clipboard
Missing a required positional argument res_ids
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:
- Go to an overdue invoice.
- Click on "Send an overdue reminder".
- 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
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
- Odoo Enterprise
- This issue has been encountered in an environment hosted on Odoo.sh.