Merge pull request #35278 from stephenBDT/fix-virtual-childtable-fields-not-in-pdf-2

fix: virtual childtable docfields value not in pdf childtable
This commit is contained in:
Ejaaz Khan 2026-01-24 02:01:28 +05:30 committed by GitHub
commit d124305323
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1407,6 +1407,9 @@ class BaseDocument:
):
currency = frappe.db.get_value("Currency", currency_value, cache=True)
if fieldname and (prop := getattr(type(self), fieldname, None)) and is_a_property(prop):
val = getattr(self, fieldname)
else:
val = self.get(fieldname)
if translated: