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:
commit
d124305323
1 changed files with 4 additions and 1 deletions
|
|
@ -1407,7 +1407,10 @@ class BaseDocument:
|
||||||
):
|
):
|
||||||
currency = frappe.db.get_value("Currency", currency_value, cache=True)
|
currency = frappe.db.get_value("Currency", currency_value, cache=True)
|
||||||
|
|
||||||
val = self.get(fieldname)
|
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:
|
if translated:
|
||||||
val = _(val)
|
val = _(val)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue