diff --git a/report_csv/README.rst b/report_csv/README.rst index 149cad3f9c..f07466d5d9 100644 --- a/report_csv/README.rst +++ b/report_csv/README.rst @@ -128,6 +128,10 @@ Contributors - Aung Ko Ko Lin +- `NuoBiT `__: + + - Deniz Gallo dgallo@nuobit.com + Maintainers ----------- diff --git a/report_csv/models/ir_report.py b/report_csv/models/ir_report.py index 629108272c..5ae7a9b214 100644 --- a/report_csv/models/ir_report.py +++ b/report_csv/models/ir_report.py @@ -55,7 +55,7 @@ def _render_csv(self, report_ref, docids, data): report_sudo = self._get_report(report_ref) report_model_name = f"report.{report_sudo.report_name}" report_model = self.env[report_model_name] - res_id = len(docids) == 1 and docids[0] + res_id = docids and len(docids) == 1 and docids[0] if not res_id or not report_sudo.attachment or not report_sudo.attachment_use: return report_model.with_context( **{ diff --git a/report_csv/readme/CONTRIBUTORS.md b/report_csv/readme/CONTRIBUTORS.md index b80f61ba30..f624d77643 100644 --- a/report_csv/readme/CONTRIBUTORS.md +++ b/report_csv/readme/CONTRIBUTORS.md @@ -3,3 +3,5 @@ - Rattapong Chokmasermkul \<\> - [Quartile](https://www.quartile.co): - Aung Ko Ko Lin +- [NuoBiT](https://www.nuobit.com): + - Deniz Gallo diff --git a/report_csv/static/description/index.html b/report_csv/static/description/index.html index 46b8f8d7e3..a2f11cef34 100644 --- a/report_csv/static/description/index.html +++ b/report_csv/static/description/index.html @@ -471,6 +471,10 @@

Contributors

  • Aung Ko Ko Lin
  • +
  • NuoBiT: +