We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1ec3e46 + 2446efd commit ca5921fCopy full SHA for ca5921f
sale_order_ubl/models/report.py
@@ -29,6 +29,8 @@ def _post_pdf(self, save_in_attachment, pdf_content=None, res_ids=None):
29
def _render_qweb_pdf(self, res_ids=None, data=None):
30
"""This is only necessary when tests are enabled.
31
It forces the creation of pdf instead of html."""
32
+ if isinstance(res_ids, int):
33
+ res_ids = [res_ids]
34
if len(res_ids or []) == 1 and not self.env.context.get("no_embedded_ubl_xml"):
35
if len(self) == 1 and self.is_ubl_xml_to_embed_in_sale_order():
36
self = self.with_context(force_report_rendering=True)
0 commit comments