Polymorphism in frappe

How we can achieve polymorphism in frappe?

Please share the use case.


frappe uses the python language so you can achieve the polymorphism the same way you implement it in python

@makarand_b I know polymorphism but how we can implement in erpnext. We need one table for all doc types.

Suppose: Table name custome_description
columns name : [Pressure, Temperature, Material, Document ID, ducument_type]