Use translation abbreviation instead of translation name in bible reference

This commit is contained in:
meichthys 2026-03-04 03:40:03 +00:00
parent 561b83ce58
commit c2e273a9e5

View File

@ -26,7 +26,8 @@ class BibleReference(Document):
else:
frappe.throw("A start verse is required to name the reference")
if self.translation:
return f"{ref} ({self.translation})"
abbr = frappe.db.get_value("Bible Translation", self.translation, "abbreviation")
return f"{ref} ({abbr})"
else:
return ref