Skip to content

Commit ca5921f

Browse files
committed
Merge PR #837 into 14.0
Signed-off-by alexis-via
2 parents 1ec3e46 + 2446efd commit ca5921f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sale_order_ubl/models/report.py

+2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ def _post_pdf(self, save_in_attachment, pdf_content=None, res_ids=None):
2929
def _render_qweb_pdf(self, res_ids=None, data=None):
3030
"""This is only necessary when tests are enabled.
3131
It forces the creation of pdf instead of html."""
32+
if isinstance(res_ids, int):
33+
res_ids = [res_ids]
3234
if len(res_ids or []) == 1 and not self.env.context.get("no_embedded_ubl_xml"):
3335
if len(self) == 1 and self.is_ubl_xml_to_embed_in_sale_order():
3436
self = self.with_context(force_report_rendering=True)

0 commit comments

Comments
 (0)