Browse Source

fix: Call is_rtl function to get the actual value

version-14
Suraj Shetty 4 years ago
parent
commit
291d7b0f16
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      frappe/utils/pdf.py

+ 1
- 1
frappe/utils/pdf.py View File

@@ -179,7 +179,7 @@ def prepare_header_footer(soup):
"html_id": html_id, "html_id": html_id,
"css": css, "css": css,
"lang": frappe.local.lang, "lang": frappe.local.lang,
"layout_direction": "rtl" if is_rtl else "ltr"
"layout_direction": "rtl" if is_rtl() else "ltr"
}) })


# create temp file # create temp file


Loading…
Cancel
Save