Skip to content

[FIX][18.0] report_csv: prevent crash when docids is None in _render_csv#1126

Open
LoayMoh99 wants to merge 1 commit intoOCA:18.0from
LoayMoh99:fix/report_csv-render-csv-docids-none
Open

[FIX][18.0] report_csv: prevent crash when docids is None in _render_csv#1126
LoayMoh99 wants to merge 1 commit intoOCA:18.0from
LoayMoh99:fix/report_csv-render-csv-docids-none

Conversation

@LoayMoh99
Copy link

Fixes #1125

Add a defensive check in _render_csv to avoid calling len() on None
when docids is not provided.

This aligns CSV report rendering with other Odoo report renderers
and prevents a TypeError.

@LoayMoh99 LoayMoh99 changed the title [FIX] report_csv: prevent crash when docids is None in _render_csv [FIX][18.0] report_csv: prevent crash when docids is None in _render_csv Feb 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG][18.0] report_csv: _render_csv fails when docids is None

1 participant