From 291d7b0f16db00b89ec765fd5376b2d58fad0762 Mon Sep 17 00:00:00 2001 From: Suraj Shetty Date: Tue, 10 Aug 2021 10:13:19 +0530 Subject: [PATCH] fix: Call is_rtl function to get the actual value --- frappe/utils/pdf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/utils/pdf.py b/frappe/utils/pdf.py index 9cbece5dbe..fc82bc2749 100644 --- a/frappe/utils/pdf.py +++ b/frappe/utils/pdf.py @@ -179,7 +179,7 @@ def prepare_header_footer(soup): "html_id": html_id, "css": css, "lang": frappe.local.lang, - "layout_direction": "rtl" if is_rtl else "ltr" + "layout_direction": "rtl" if is_rtl() else "ltr" }) # create temp file