ERPNext Foundation ERPNext Cloud Chat Blog Discuss Frappé* Donate

Data Fetch Using Jinja Template


#21

using sql in jinja is litil difficult i think but you can try this way

if your Risk Profile doc is custom doc then you can call direct python script

write method in class
eg
class RiskProfile():
def get_data()
//you code

and call that method in jinja directly
{{doc.get_data()}}


#22

Thanks @AkshayJadhao but i don’t have backend access.