mirror of
https://github.com/meichthys/church.git
synced 2026-05-05 13:32:55 +00:00
Use translation abbreviation instead of translation name in bible reference
This commit is contained in:
parent
561b83ce58
commit
c2e273a9e5
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user